From ac7a407a47fd39af9347c0203238ac17cd41db61 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 3 May 2006 16:31:57 +0000 Subject: [PATCH] IPAL12252. --- src/EntityGUI/EntityGUI.cxx | 8 +------- src/EntityGUI/EntityGUI.h | 3 --- 2 files changed, 1 insertion(+), 10 deletions(-) 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 -- 2.39.2