Remove ternary operator (for Linux build)

This commit is contained in:
Rebecca Cox
2017-11-06 09:27:26 +01:00
parent ecc1df5424
commit 61067cbc24

View File

@@ -486,8 +486,13 @@ void RimWellLogTrack::loadDataAndUpdate()
RimWellRftPlot* rftPlot(nullptr); RimWellRftPlot* rftPlot(nullptr);
firstAncestorOrThisOfType(rftPlot); firstAncestorOrThisOfType(rftPlot);
RimWellPltPlot* pltPlot; RimWellPltPlot* pltPlot = nullptr;
rftPlot ? pltPlot = nullptr : firstAncestorOrThisOfType(pltPlot); if (!rftPlot)
{
firstAncestorOrThisOfType(pltPlot);
}
RimWellAllocationPlot* wellAllocationPlot = nullptr;
if (rftPlot || pltPlot) if (rftPlot || pltPlot)
{ {
@@ -524,9 +529,10 @@ void RimWellLogTrack::loadDataAndUpdate()
m_simWellName = wellName; m_simWellName = wellName;
} }
} }
else
RimWellAllocationPlot* wellAllocationPlot; {
(rftPlot || pltPlot) ? wellAllocationPlot = nullptr : firstAncestorOrThisOfType(wellAllocationPlot); firstAncestorOrThisOfType(wellAllocationPlot);
}
if (wellAllocationPlot) if (wellAllocationPlot)
{ {
@@ -544,7 +550,6 @@ void RimWellLogTrack::loadDataAndUpdate()
} }
} }
updateFormationNamesOnPlot(); updateFormationNamesOnPlot();
} }