#1996 Renaming. Remove unused includes and rename local variables

This commit is contained in:
Rebecca Cox
2017-10-13 10:16:01 +02:00
parent d748803159
commit 7d908394db
31 changed files with 35 additions and 54 deletions

View File

@@ -78,14 +78,14 @@ bool RicNewRftPlotFeature::isCommandEnabled()
//int branchIndex;
auto eclWell = selectedPdmObject<RimSimWellInView*>();
auto rimWellPath = eclWell == nullptr ? selectedPdmObject<RimWellPath*>() : nullptr;
RimSimWellInView* simWell = selectedPdmObject<RimSimWellInView*>();
RimWellPath* rimWellPath = simWell == nullptr ? selectedPdmObject<RimWellPath*>() : nullptr;
bool enable = true;
if (eclWell != nullptr)
if (simWell != nullptr)
{
auto eclCase = selectedPdmObject<RimEclipseResultCase*>();
if (eclWell != nullptr)
RimEclipseResultCase* eclCase = selectedPdmObject<RimEclipseResultCase*>();
if (simWell != nullptr)
{
enable &= RimWellRftPlot::hasPressureData(eclCase);
}

View File

@@ -46,7 +46,7 @@ protected:
private:
RimWellLogTrack* selectedWellLogPlotTrack() const;
RimWellPath* selectedWellPath() const;
RimSimWellInView* selectedSimulationWell(int * branchIndex) const;
RimSimWellInView* selectedSimulationWell(int * branchIndex) const;
bool caseAvailable() const;
};