summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2016-01-20 15:33:10 +0000
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2016-01-20 15:33:10 +0000
commit60844e08956875762314a17cbcd6fdfa23a548e2 (patch)
tree6b379d2bf16911f6d8ac8f7dc202f60d56b7bda0
parentStreamline ModelPartForRoot (diff)
downloadslicer-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.cpp6
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