0027067: Avoid use of virtual methods for implementation of destructors in legacy...
[occt.git] / src / Xw / Xw_Window.hxx
index 0c1aa9a..bf18281 100644 (file)
@@ -58,13 +58,8 @@ public:
                              const Window theXWin,
                              const Aspect_FBConfig theFBConfig = NULL);
 
-  //! Destroies the Window and all resourses attached to it
-  Standard_EXPORT virtual void Destroy() Standard_OVERRIDE;
-
-  ~Xw_Window()
-  {
-    Destroy();
-  }
+  //! Destroys the Window and all resourses attached to it
+  Standard_EXPORT ~Xw_Window();
 
   //! Opens the window <me>
   Standard_EXPORT virtual void Map() const Standard_OVERRIDE;
@@ -131,7 +126,7 @@ protected:
 
 public:
 
-  DEFINE_STANDARD_RTTI(Xw_Window, Aspect_Window)
+  DEFINE_STANDARD_RTTIEXT(Xw_Window,Aspect_Window)
 
 };