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

@@ -871,8 +871,9 @@ RimWellPathGroup* RimWellPathCollection::findOrCreateWellPathGroup( gsl::not_nul
RimWellPathGroup* group = new RimWellPathGroup;
m_wellPaths.push_back( group );
for ( auto [existingWellPath, identicalTubeLength] : wellPathsWithCommonGeometry )
for ( auto wellPathAndTubeLength : wellPathsWithCommonGeometry )
{
auto existingWellPath = wellPathAndTubeLength.first;
detachWellPath( existingWellPath );
group->addChildWellPath( existingWellPath );
}

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;