mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: improve api for views and oil fields.
This commit is contained in:
@@ -277,10 +277,8 @@ caf::PdmScriptResponse RicExportContourMapToTextFeature::execute()
|
||||
RimProject* proj = app->project();
|
||||
CAF_ASSERT( proj );
|
||||
|
||||
std::vector<Rim3dView*> allViews;
|
||||
proj->allViews( allViews );
|
||||
|
||||
Rim3dView* myView = nullptr;
|
||||
std::vector<Rim3dView*> allViews = proj->allViews();
|
||||
Rim3dView* myView = nullptr;
|
||||
for ( auto view : allViews )
|
||||
{
|
||||
if ( m_viewId == view->id() )
|
||||
|
||||
Reference in New Issue
Block a user