0024788: Foundation Classes - remove Dico_Dictionary
[occt.git] / src / XSControl / XSControl_Vars.cxx
index 10a2b6b..33c4786 100644 (file)
@@ -12,7 +12,6 @@
 // commercial license or contractual agreement.
 
 
-#include <Dico_DictionaryOfTransient.hxx>
 #include <Geom2d_CartesianPoint.hxx>
 #include <Geom2d_Curve.hxx>
 #include <Geom_CartesianPoint.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(XSControl_Vars,MMgt_TShared)
 
-XSControl_Vars::XSControl_Vars  ()
-    {  thevars = new Dico_DictionaryOfTransient;  }
+XSControl_Vars::XSControl_Vars() { }
 
 void  XSControl_Vars::Set
   (const Standard_CString name,
    const Handle(Standard_Transient)& val)
 {
-  thevars->SetItem (name,val);
+  thevars.Bind(name,val);
 }
 
 Handle(Standard_Transient)  XSControl_Vars::Get ( Standard_CString& name) const
 {
   Handle(Standard_Transient) val;
-  if (!thevars->GetItem (name,val)) val.Nullify();
+  if (!thevars.Find(name, val))
+    val.Nullify();
   return val;
 }