mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027067: Avoid use of virtual methods for implementation of destructors in legacy classes
Redundant methods Delete() and Desroy(), created in CDL as a hack to define destructor for the class, are removed; their definitions are converted to definition of destructors. In a couple of places methods Destroy() are preserved (bug made non-virtual) because they are called explicitly.
This commit is contained in:
@@ -123,10 +123,10 @@ WNT_Window::WNT_Window (const Aspect_Handle theHandle,
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Destroy
|
||||
// function : ~WNT_Window
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void WNT_Window::Destroy()
|
||||
WNT_Window::~WNT_Window()
|
||||
{
|
||||
if (myHWindow == NULL
|
||||
|| myIsForeign)
|
||||
|
Reference in New Issue
Block a user