Remove some structured bindings to avoid unused variable warnings

This commit is contained in:
Gaute Lindkvist
2020-10-26 08:35:49 +01:00
parent 0b6254bfb4
commit f30ad36c82
2 changed files with 6 additions and 3 deletions

View File

@@ -264,8 +264,9 @@ void RimWellPathGroup::makeMoreLevelsIfNecessary()
if ( branches.size() <= 1u ) return;
bool anyNonTrivialBranches = false;
for ( const auto& [firstDeviation, wellPaths] : branches )
for ( const auto& firstDeviationAndWellPaths : branches )
{
const auto& wellPaths = firstDeviationAndWellPaths.second;
if ( wellPaths.size() > 1u )
{
anyNonTrivialBranches = true;
@@ -278,8 +279,9 @@ void RimWellPathGroup::makeMoreLevelsIfNecessary()
size_t commonSize = wellPathGeometry()->wellPathPoints().size();
if ( commonSize > 0u ) startIndex = commonSize - 1u;
for ( const auto& [firstDeviation, wellPaths] : branches )
for ( const auto& firstDeviationAndWellPaths : branches )
{
const auto& wellPaths = firstDeviationAndWellPaths.second;
if ( wellPaths.size() > 1u )
{
RimWellPathGroup* newGroup = new RimWellPathGroup;