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:
@@ -118,7 +118,7 @@ std::map<QString, cvf::ref<RigWellPathFormations>>
|
||||
formations[wellNames[i]].push_back( formation );
|
||||
}
|
||||
|
||||
for ( const std::pair<QString, std::vector<RigWellPathFormation>>& formation : formations )
|
||||
for ( const std::pair<const QString, std::vector<RigWellPathFormation>>& formation : formations )
|
||||
{
|
||||
cvf::ref<RigWellPathFormations> wellPathFormations =
|
||||
new RigWellPathFormations( formation.second, filePath, formation.first );
|
||||
|
||||
Reference in New Issue
Block a user