From: mzn Date: Wed, 3 May 2006 16:31:57 +0000 (+0000) Subject: IPAL12252. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac7a407a47fd39af9347c0203238ac17cd41db61;p=modules%2Fgeom.git IPAL12252. --- diff --git a/src/EntityGUI/EntityGUI.cxx b/src/EntityGUI/EntityGUI.cxx index f3e695e6d..12ae4e2ef 100644 --- a/src/EntityGUI/EntityGUI.cxx +++ b/src/EntityGUI/EntityGUI.cxx @@ -50,19 +50,13 @@ using namespace boost; using namespace std; -EntityGUI* EntityGUI::myGUIObject = 0; - //======================================================================= // function : GetEntityGUI() // purpose : Get the only EntityGUI object [ static ] //======================================================================= EntityGUI* EntityGUI::GetEntityGUI( GeometryGUI* parent ) { - if ( myGUIObject == 0 ) { - // init EntityGUI only once - myGUIObject = new EntityGUI( parent ); - } - return myGUIObject; + return new EntityGUI( parent ); } //======================================================================= diff --git a/src/EntityGUI/EntityGUI.h b/src/EntityGUI/EntityGUI.h index be82e32fc..7441021ab 100644 --- a/src/EntityGUI/EntityGUI.h +++ b/src/EntityGUI/EntityGUI.h @@ -61,9 +61,6 @@ public : // AIS shape used only during topo/geom simulations Handle(AIS_Shape) mySimulationShape1; Handle(AIS_Shape) mySimulationShape2; - -private: - static EntityGUI* myGUIObject; //!< the only EntityGUI object }; #endif