mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove some structured bindings to avoid unused variable warnings
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user