mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6491 Fix range iterators which was creating data copies (clang10 warnings).
This commit is contained in:
@@ -217,7 +217,7 @@ void RigWellPathFormations::evaluateFormations( const std::vector<std::pair<RigW
|
||||
evaluateFormationsForOnePosition( formations, maxLevel, PickPosition::TOP, &tempMakeVectorUniqueOnDepth, depthType );
|
||||
evaluateFormationsForOnePosition( formations, maxLevel, PickPosition::BASE, &tempMakeVectorUniqueOnDepth, depthType );
|
||||
|
||||
for ( const std::pair<double, LevelAndName>& uniqueDepth : tempMakeVectorUniqueOnDepth )
|
||||
for ( const std::pair<const double, LevelAndName>& uniqueDepth : tempMakeVectorUniqueOnDepth )
|
||||
{
|
||||
depths->push_back( uniqueDepth.first );
|
||||
names->push_back( uniqueDepth.second.name );
|
||||
@@ -268,7 +268,7 @@ void RigWellPathFormations::evaluateFluids( const std::vector<RigWellPathFormati
|
||||
uniqueListMaker[depthTop] = formation.formationName + " Top";
|
||||
}
|
||||
|
||||
for ( const std::pair<double, QString>& depthAndFormation : uniqueListMaker )
|
||||
for ( const std::pair<const double, QString>& depthAndFormation : uniqueListMaker )
|
||||
{
|
||||
depths->push_back( depthAndFormation.first );
|
||||
names->push_back( depthAndFormation.second );
|
||||
@@ -313,7 +313,7 @@ std::vector<RigWellPathFormations::FormationLevel> RigWellPathFormations::format
|
||||
{
|
||||
std::vector<RigWellPathFormations::FormationLevel> formationLevels;
|
||||
|
||||
for ( const std::pair<RigWellPathFormations::FormationLevel, bool>& formationLevel : m_formationsLevelsPresent )
|
||||
for ( const std::pair<const RigWellPathFormations::FormationLevel, bool>& formationLevel : m_formationsLevelsPresent )
|
||||
{
|
||||
formationLevels.push_back( formationLevel.first );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user