mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Removed unnecessary use of xmlObj macro
This commit is contained in:
parent
7562e7bb30
commit
74defdc219
@ -80,7 +80,7 @@ void RicWellPathsImportSsihubFeature::onActionTriggered(bool isChecked)
|
|||||||
|
|
||||||
|
|
||||||
// Keep a copy of the import settings, and restore if cancel is pressed in the import wizard
|
// Keep a copy of the import settings, and restore if cancel is pressed in the import wizard
|
||||||
QString copyOfOriginalObject = xmlObj(app->project()->wellPathImport())->writeObjectToXmlString();
|
QString copyOfOriginalObject = app->project()->wellPathImport()->writeObjectToXmlString();
|
||||||
|
|
||||||
RiuWellImportWizard wellImportwizard(app->preferences()->ssihubAddress, wellPathsFolderPath, app->project()->wellPathImport(), RiuMainWindow::instance());
|
RiuWellImportWizard wellImportwizard(app->preferences()->ssihubAddress, wellPathsFolderPath, app->project()->wellPathImport(), RiuMainWindow::instance());
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ void RicWellPathsImportSsihubFeature::onActionTriggered(bool isChecked)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
xmlObj(app->project()->wellPathImport())->readObjectFromXmlString(copyOfOriginalObject, caf::PdmDefaultObjectFactory::instance());
|
app->project()->wellPathImport()->readObjectFromXmlString(copyOfOriginalObject, caf::PdmDefaultObjectFactory::instance());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -884,10 +884,10 @@ void WellSelectionPage::buildWellTreeView()
|
|||||||
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
|
RimWellPathEntry* wellPathEntry = oilField->wells[wIdx];
|
||||||
|
|
||||||
// Create a copy of the PdmObject, as it is not supported to have multiple parents of any objects
|
// 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;
|
RimWellPathEntry* wellPathCopy = new RimWellPathEntry;
|
||||||
xmlObj(wellPathCopy)->readObjectFromXmlString(objStr, caf::PdmDefaultObjectFactory::instance());
|
wellPathCopy->readObjectFromXmlString(objStr, caf::PdmDefaultObjectFactory::instance());
|
||||||
|
|
||||||
fieldGroup->objects.push_back(wellPathCopy);
|
fieldGroup->objects.push_back(wellPathCopy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user