]> OCCT Git - occt.git/commitdiff
0031086: Coding Rules - STEPCAFControl_Reader has virtual functions, but no virtual...
authorkgv <kgv@opencascade.com>
Fri, 28 Aug 2020 11:10:43 +0000 (14:10 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 28 Aug 2020 15:11:58 +0000 (18:11 +0300)
Added missing virtual destructor.

src/STEPCAFControl/STEPCAFControl_Reader.cxx
src/STEPCAFControl/STEPCAFControl_Reader.hxx

index 77dcf0de3053e6c1a698b2198ce0b040ddc45898..60275036844ae63fe135380c7a6b3b9494e548b5 100644 (file)
@@ -13,6 +13,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <STEPCAFControl_Reader.hxx>
 
 #include <BRep_Builder.hxx>
 #include <Geom_Axis2Placement.hxx>
@@ -50,7 +51,6 @@
 #include <STEPCAFControl_DataMapOfSDRExternFile.hxx>
 #include <STEPCAFControl_DataMapOfShapePD.hxx>
 #include <STEPCAFControl_ExternFile.hxx>
-#include <STEPCAFControl_Reader.hxx>
 #include <STEPConstruct.hxx>
 #include <STEPConstruct_Assembly.hxx>
 #include <STEPConstruct_ExternRefs.hxx>
@@ -356,6 +356,14 @@ STEPCAFControl_Reader::STEPCAFControl_Reader(const Handle(XSControl_WorkSession)
   Init(WS, scratch);
 }
 
+//=======================================================================
+//function : ~STEPCAFControl_Reader
+//purpose  :
+//=======================================================================
+STEPCAFControl_Reader::~STEPCAFControl_Reader()
+{
+  //
+}
 
 //=======================================================================
 //function : Init
index b37c05d7c66df52dfc43e8a80bbdb10b1094cbb9..762b9c7f407c9ccbf3c1fb83d10e9ecc9db97c09 100644 (file)
@@ -70,7 +70,10 @@ public:
   //! Creates a reader tool and attaches it to an already existing Session
   //! Clears the session if it was not yet set for STEP
   Standard_EXPORT STEPCAFControl_Reader(const Handle(XSControl_WorkSession)& WS, const Standard_Boolean scratch = Standard_True);
-  
+
+  //! Destructor.
+  Standard_EXPORT virtual ~STEPCAFControl_Reader();
+
   //! Clears the internal data structures and attaches to a new session
   //! Clears the session if it was not yet set for STEP
   Standard_EXPORT void Init (const Handle(XSControl_WorkSession)& WS, const Standard_Boolean scratch = Standard_True);