From 60844e08956875762314a17cbcd6fdfa23a548e2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 20 Jan 2016 15:33:10 +0000 Subject: Take pointer, not explicit reference of variant --- slicer/json/serializer.cpp | 6 +++--- 1 file 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(*n); - arr.push_back(json::ValuePtr(new json::Value())); - ModelTreeIterateRoot(arr.back().get(), mp); + auto arr = boost::get(n); + arr->push_back(json::ValuePtr(new json::Value())); + ModelTreeIterateRoot(arr->back().get(), mp); } void -- cgit v1.2.3