System : Removed unnecessary use of xmlObj macro

This commit is contained in:
Magne Sjaastad
2016-12-12 07:29:44 +01:00
parent 7562e7bb30
commit 74defdc219
2 changed files with 4 additions and 4 deletions

View File

@@ -884,10 +884,10 @@ void WellSelectionPage::buildWellTreeView()
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
// Create a copy of the PdmObject, as it is not supported to have multiple parents of any objects
QString objStr = xmlObj(wellPathEntry)->writeObjectToXmlString();
QString objStr = wellPathEntry->writeObjectToXmlString();
RimWellPathEntry* wellPathCopy = new RimWellPathEntry;
xmlObj(wellPathCopy)->readObjectFromXmlString(objStr, caf::PdmDefaultObjectFactory::instance());
wellPathCopy->readObjectFromXmlString(objStr, caf::PdmDefaultObjectFactory::instance());
fieldGroup->objects.push_back(wellPathCopy);
}