mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-18 21:12:36 +08: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:
@@ -15,11 +15,6 @@
|
||||
#include <StdFail_NotDone.hxx>
|
||||
#include <Standard_DimensionError.hxx>
|
||||
|
||||
inline void math_FunctionSetRoot::Delete() const
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
inline Standard_Boolean math_FunctionSetRoot::IsSolutionReached(math_FunctionSetWithDerivatives&)
|
||||
{
|
||||
for (Standard_Integer i = 1; i <= Sol.Length(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user