#5273 Allen Diagrams: Use const access to Nnc connections

This commit is contained in:
Magne Sjaastad
2020-01-13 15:06:16 +01:00
parent 6761a71798
commit 0abd839669
6 changed files with 41 additions and 21 deletions

View File

@@ -272,8 +272,8 @@ void RimFaultInViewCollection::syncronizeFaults()
// NNCs
this->noCommonAreaNnncCollection()->noCommonAreaNncs().deleteAllChildObjects();
RigMainGrid* mainGrid = parentView()->mainGrid();
std::vector<RigConnection>& nncConnections = mainGrid->nncData()->connections();
RigMainGrid* mainGrid = parentView()->mainGrid();
const std::vector<RigConnection>& nncConnections = mainGrid->nncData()->connections();
for ( size_t connIndex = 0; connIndex < nncConnections.size(); connIndex++ )
{
if ( !nncConnections[connIndex].hasCommonArea() )