summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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