]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid problem with dynamic_cast under SALOME release
authorVitaly SMETANNIKOV <vsv@opencascade.com>
Fri, 10 Jul 2015 09:42:16 +0000 (12:42 +0300)
committerVitaly SMETANNIKOV <vsv@opencascade.com>
Fri, 10 Jul 2015 09:42:16 +0000 (12:42 +0300)
src/GeomAPI/CMakeLists.txt
src/GeomAPI/GeomAPI_IPresentable.cpp [new file with mode: 0644]
src/GeomAPI/GeomAPI_IPresentable.h

index afe2bd4acf30d3f028fc08b07b64a5583469f045..8a66dfa865407705af403cd7751af818aad1dc42 100644 (file)
@@ -59,6 +59,7 @@ SET(PROJECT_SOURCES
     GeomAPI_ICustomPrs.cpp
     GeomAPI_Ax1.cpp
     GeomAPI_Ax3.cpp
+    GeomAPI_IPresentable.cpp
 )
 
 SET(PROJECT_LIBRARIES
diff --git a/src/GeomAPI/GeomAPI_IPresentable.cpp b/src/GeomAPI/GeomAPI_IPresentable.cpp
new file mode 100644 (file)
index 0000000..ec42fa6
--- /dev/null
@@ -0,0 +1,17 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+/*
+ *  Created on: Jul 10, 2015
+ *      Author: vsv
+ */
+// This file is added in order to avoid a problem with
+// dynamic_cast of GeomAPI_IPresentable objects under
+// SALOME in release mode
+
+
+
+#include "GeomAPI_IPresentable.h"
+
+
+GeomAPI_IPresentable::~GeomAPI_IPresentable()
+{
+}
index 94021ab80f87495362f3754d51781eb459a9400b..5bc4de58fddc5d3e62b9fed6486f4dfec6761493 100644 (file)
@@ -15,6 +15,7 @@
 class GeomAPI_IPresentable
 {
  public:
+  virtual ~GeomAPI_IPresentable();
   /** Returns the AIS preview
    *   \param thePrevious - defines a presentation if it was created previously
    */