From a11b2c49ff38ba3672d96f75b78a9269f79a286d Mon Sep 17 00:00:00 2001 From: pkv Date: Thu, 27 Oct 2005 11:29:06 +0000 Subject: [PATCH] remove non-initialized fields --- src/PIPELINE/VISU_ScalarBarCtrl.cxx | 12 ++++++------ src/PIPELINE/VISU_ScalarBarCtrl.hxx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/PIPELINE/VISU_ScalarBarCtrl.cxx b/src/PIPELINE/VISU_ScalarBarCtrl.cxx index e200b2ea..4554d1fb 100644 --- a/src/PIPELINE/VISU_ScalarBarCtrl.cxx +++ b/src/PIPELINE/VISU_ScalarBarCtrl.cxx @@ -105,10 +105,10 @@ VISU_ScalarBarCtrl::~VISU_ScalarBarCtrl() void VISU_ScalarBarCtrl::SetMode(const int theMode) { myMode=theMode; - myScalarBarNumber=myScalarBarNumberMax; - if(!myMode){ - myScalarBarNumber=1; - } + //myScalarBarNumber=myScalarBarNumberMax; + //if(!myMode){ + // myScalarBarNumber=1; + //} } //================================================================== // function : GetMode @@ -256,7 +256,7 @@ void VISU_ScalarBarCtrl::AddToRender(vtkRenderer* theRenderer) int i; // Update(); - for (i=0; iAddActor2D(mySBA[i]); } } @@ -266,7 +266,7 @@ void VISU_ScalarBarCtrl::AddToRender(vtkRenderer* theRenderer) //================================================================== void VISU_ScalarBarCtrl::RemoveFromRender(vtkRenderer* theRenderer) { - for (int i=0; iRemoveActor2D(mySBA[i]); } } diff --git a/src/PIPELINE/VISU_ScalarBarCtrl.hxx b/src/PIPELINE/VISU_ScalarBarCtrl.hxx index dab82503..f55ae051 100644 --- a/src/PIPELINE/VISU_ScalarBarCtrl.hxx +++ b/src/PIPELINE/VISU_ScalarBarCtrl.hxx @@ -123,7 +123,7 @@ protected: protected: int myMode; - int myScalarBarNumber; + //int myScalarBarNumber; int myScalarBarNumberMax; float myDistance, myL, myB, myPosition[2]; float myRangeLocal[2]; -- 2.39.2