mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
No need to clear before exit as object no longer are deleted in destructor
p4#: 20966
This commit is contained in:
parent
19e2adc1bf
commit
4368a644bf
@ -77,9 +77,6 @@ public:
|
||||
xmlStream.setAutoFormatting(true);
|
||||
|
||||
typedObjectGroup.writeFields(xmlStream);
|
||||
|
||||
// Call clear to avoid destruction of objects
|
||||
typedObjectGroup.objects().clear();
|
||||
}
|
||||
|
||||
// Read back XML into object group, factory methods will be called that will create new objects
|
||||
@ -92,9 +89,6 @@ public:
|
||||
T* obj = dynamic_cast<T*>(destinationObjectGroup.objects[it]);
|
||||
if (obj) copyOfTypedObjects->push_back(obj);
|
||||
}
|
||||
|
||||
// Call clear to avoid destruction of objects
|
||||
destinationObjectGroup.objects().clear();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user