summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/modelPartsTypes.impl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/slicer/slicer/modelPartsTypes.impl.h b/slicer/slicer/modelPartsTypes.impl.h
index 5f5acf5..0924de6 100644
--- a/slicer/slicer/modelPartsTypes.impl.h
+++ b/slicer/slicer/modelPartsTypes.impl.h
@@ -607,8 +607,7 @@ namespace Slicer {
ModelPartForSequence<T>::GetAnonChildRef(const HookFilter &)
{
BOOST_ASSERT(this->Model);
- this->Model->push_back(typename element_type::value_type());
- return ChildRef(ModelPart::CreateFor(this->Model->back()));
+ return ChildRef(ModelPart::CreateFor(this->Model->emplace_back()));
}
template<typename T>