mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
Simplify some code with C++17
This commit is contained in:
1 parent
6220ff160c
commit
b1d9d17ddb
9 files changed
+22
-42
No files matched your search
@@ -142,12 +142,11 @@ QList<caf::PdmOptionItemInfo>
|
||||
if ( curveSet )
|
||||
{
|
||||
auto params = curveSet->correlationSortedEnsembleParameters();
|
||||
for ( const auto& paramCorrPair : params )
|
||||
for ( const auto& [param, corr] : params )
|
||||
{
|
||||
QString name = paramCorrPair.first.name;
|
||||
double corr = paramCorrPair.second;
|
||||
options.push_back(
|
||||
caf::PdmOptionItemInfo( QString( "%1 (Avg. correlation: %2)" ).arg( name ).arg( corr ), name ) );
|
||||
caf::PdmOptionItemInfo( QString( "%1 (Avg. correlation: %2)" ).arg( param.name ).arg( corr ),
|
||||
param.name ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user