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:
abv
2016-01-03 07:11:46 +03:00
parent 18f7c9a5c2
commit e6f550da99
116 changed files with 150 additions and 467 deletions

View File

@@ -27,7 +27,11 @@ BRepBuilderAPI_Command::BRepBuilderAPI_Command() :
{
}
void BRepBuilderAPI_Command::Delete()
//=======================================================================
//function : ~BRepBuilderAPI_Command
//purpose :
//=======================================================================
BRepBuilderAPI_Command::~BRepBuilderAPI_Command()
{}
//=======================================================================

View File

@@ -39,10 +39,8 @@ class BRepBuilderAPI_Command
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT virtual void Delete();
Standard_EXPORT virtual ~BRepBuilderAPI_Command(){Delete() ; }
Standard_EXPORT virtual ~BRepBuilderAPI_Command();
Standard_EXPORT virtual Standard_Boolean IsDone() const;

View File

@@ -31,10 +31,6 @@ BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape()
{
}
void BRepBuilderAPI_MakeShape::Delete()
{}
//=======================================================================
//function : Build
//purpose :

View File

@@ -40,10 +40,6 @@ public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT virtual void Delete() Standard_OVERRIDE;
Standard_EXPORT virtual ~BRepBuilderAPI_MakeShape(){Delete() ; }
//! This is called by Shape(). It does nothing but
//! may be redefined.
Standard_EXPORT virtual void Build();