mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Replace RiaApplication::instance()->project() with RimProject::current().
Also remove uneccessary includes of RiaApplication.h.
This commit is contained in:
committed by
Magne Sjaastad
parent
7972ff8c02
commit
c016c02e40
@@ -19,8 +19,6 @@
|
||||
|
||||
#include "RicPasteEclipseCasesFeature.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RicPasteFeatureImpl.h"
|
||||
|
||||
#include "RigGridManager.h"
|
||||
@@ -106,7 +104,7 @@ void RicPasteEclipseCasesFeature::setupActionLook( QAction* actionToSetup )
|
||||
void RicPasteEclipseCasesFeature::addCasesToGridCaseGroup( caf::PdmObjectGroup& objectGroup,
|
||||
RimIdenticalGridCaseGroup* gridCaseGroup )
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimProject* proj = RimProject::current();
|
||||
CVF_ASSERT( proj );
|
||||
|
||||
std::vector<RimEclipseResultCase*> resultCases;
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
#include "RicPasteEclipseViewsFeature.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "Riu3DMainWindowTools.h"
|
||||
|
||||
#include "RicPasteFeatureImpl.h"
|
||||
|
||||
@@ -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++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user