Replace RiaApplication::instance()->project() with RimProject::current().

Also remove uneccessary includes of RiaApplication.h.
This commit is contained in:
Kristian Bendiksen
2020-05-12 09:50:38 +02:00
committed by Magne Sjaastad
parent 7972ff8c02
commit c016c02e40
263 changed files with 320 additions and 610 deletions

View File

@@ -19,8 +19,6 @@
#include "RicPasteFeatureImpl.h"
#include "RiaApplication.h"
#include "RimCaseCollection.h"
#include "RimEclipseCase.h"
#include "RimEclipseView.h"
@@ -44,7 +42,7 @@
void RicPasteFeatureImpl::populateObjectGroupFromReferences( const std::vector<QString>& referenceList,
caf::PdmObjectGroup* objectGroup )
{
caf::PdmObjectHandle* referenceRoot = RiaApplication::instance()->project();
caf::PdmObjectHandle* referenceRoot = RimProject::current();
for ( size_t i = 0; i < referenceList.size(); i++ )
{