diff --git a/DDCore/src/Segmentations.cpp b/DDCore/src/Segmentations.cpp index bbe28a2234f754a0ff36625dc61bc6837824a4ee..1e8c625ccaaf0539c4d9d19bad1de85009d0347f 100644 --- a/DDCore/src/Segmentations.cpp +++ b/DDCore/src/Segmentations.cpp @@ -124,8 +124,8 @@ void SegmentationObject::neighbours(const CellID& cell, std::set<CellID>& nb) co /// Constructor to used when creating a new object Segmentation::Segmentation(const string& typ, const string& nam, BitField64* dec) : Handle<Object>() { - string type = "segmentation_constructor__"+typ; - SegmentationObject* obj = PluginService::Create<SegmentationObject*>(type, dec); + string seg_type = "segmentation_constructor__"+typ; + SegmentationObject* obj = PluginService::Create<SegmentationObject*>(seg_type, dec); if ( obj != 0 ) { assign(obj, nam, typ); if ( !nam.empty() ) obj->setName(nam);