diff options
| author | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2016-01-20 15:33:10 +0000 | 
|---|---|---|
| committer | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2016-01-20 15:33:10 +0000 | 
| commit | 60844e08956875762314a17cbcd6fdfa23a548e2 (patch) | |
| tree | 6b379d2bf16911f6d8ac8f7dc202f60d56b7bda0 | |
| parent | Streamline ModelPartForRoot (diff) | |
| download | slicer-60844e08956875762314a17cbcd6fdfa23a548e2.tar.bz2 slicer-60844e08956875762314a17cbcd6fdfa23a548e2.tar.xz slicer-60844e08956875762314a17cbcd6fdfa23a548e2.zip | |
Take pointer, not explicit reference of variantslicer-1.2.3.1
| -rw-r--r-- | slicer/json/serializer.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/slicer/json/serializer.cpp b/slicer/json/serializer.cpp index 5e6bf01..e50dd32 100644 --- a/slicer/json/serializer.cpp +++ b/slicer/json/serializer.cpp @@ -174,9 +174,9 @@ namespace Slicer {  	void  	JsonSerializer::ModelTreeIterateSeq(json::Value * n, ModelPartPtr mp)  	{ -		auto & arr = boost::get<json::Array &>(*n); -		arr.push_back(json::ValuePtr(new json::Value())); -		ModelTreeIterateRoot(arr.back().get(), mp); +		auto arr = boost::get<json::Array>(n); +		arr->push_back(json::ValuePtr(new json::Value())); +		ModelTreeIterateRoot(arr->back().get(), mp);  	}  	void | 
