From: pkv Date: Thu, 27 Oct 2005 11:29:06 +0000 (+0000) Subject: remove non-initialized fields X-Git-Tag: TG-D5-38-2003_D2005-20-12~124 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a11b2c49ff38ba3672d96f75b78a9269f79a286d;p=modules%2Fvisu.git remove non-initialized fields --- 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];