#6491 Fix range iterators which was creating data copies (clang10 warnings).

This commit is contained in:
Kristian Bendiksen
2020-09-14 20:17:20 +02:00
parent ef7517f1cb
commit 69a1901904
13 changed files with 20 additions and 20 deletions

View File

@@ -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 );
}