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

Also remove uneccessary includes of RiaApplication.h.
This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2020-05-12 12:01:44 +02:00
1 parent 7972ff8c02
commit c016c02e40
263 files changed
+320 -610

No files matched your search

@@ -18,8 +18,6 @@
#include "RivWellPathsPartMgr.h"
#include "RiaApplication.h"
#include "RimEclipseView.h"
#include "RimProject.h"
#include "RimTools.h"
@@ -121,7 +119,7 @@ void RivWellPathsPartMgr::scheduleGeometryRegen()
//--------------------------------------------------------------------------------------------------
void RivWellPathsPartMgr::createPartManagersIfRequired()
{
RimProject* proj = RiaApplication::instance()->project();
RimProject* proj = RimProject::current();
auto wellPaths = proj->allWellPaths();
if ( m_wellPathsPartMgrs.size() != wellPaths.size() )