Whitespace

This commit is contained in:
Magne Sjaastad 2019-03-29 12:53:11 +01:00
parent c5f2b2bca9
commit b08271b982

View File

@ -1476,7 +1476,7 @@ RimEclipseResultDefinition::calcOptionsForVariableUiFieldStandard(RiaDefines::Re
QStringList cellCenterResultNames;
QStringList cellFaceResultNames;
for (QString s : getResultNamesForResultType(resultCatType, results))
for (const QString& s : getResultNamesForResultType(resultCatType, results))
{
if (s == RiaDefines::completionTypeResultName())
{
@ -1497,7 +1497,7 @@ RimEclipseResultDefinition::calcOptionsForVariableUiFieldStandard(RiaDefines::Re
cellFaceResultNames.sort();
// Cell Center result names
for (QString s : cellCenterResultNames)
for (const QString& s : cellCenterResultNames)
{
optionList.push_back(caf::PdmOptionItemInfo(s, s));
}
@ -1516,13 +1516,12 @@ RimEclipseResultDefinition::calcOptionsForVariableUiFieldStandard(RiaDefines::Re
if (resultCatType == RiaDefines::DYNAMIC_NATIVE && hasAtLeastOneTernaryComponent)
{
optionList.push_front(
caf::PdmOptionItemInfo(RiaDefines::ternarySaturationResultName(),
RiaDefines::ternarySaturationResultName()));
caf::PdmOptionItemInfo(RiaDefines::ternarySaturationResultName(), RiaDefines::ternarySaturationResultName()));
}
}
if (addPerCellFaceOptionItems)
{
for (QString s : cellFaceResultNames)
for (const QString& s : cellFaceResultNames)
{
if (showDerivedResultsFirst)
{
@ -1707,7 +1706,8 @@ QString RimEclipseResultDefinition::selectedTracersString() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QStringList RimEclipseResultDefinition::getResultNamesForResultType(RiaDefines::ResultCatType resultCatType, const RigCaseCellResultsData* results)
QStringList RimEclipseResultDefinition::getResultNamesForResultType(RiaDefines::ResultCatType resultCatType,
const RigCaseCellResultsData* results)
{
if (resultCatType != RiaDefines::FLOW_DIAGNOSTICS)
{