From: Vitaly SMETANNIKOV Date: Fri, 10 Jul 2015 09:42:16 +0000 (+0300) Subject: Avoid problem with dynamic_cast under SALOME release X-Git-Tag: V_1.3.0~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b6c1b6de84e1c1a1b76e9846986f414df14db15b;p=modules%2Fshaper.git Avoid problem with dynamic_cast under SALOME release --- diff --git a/src/GeomAPI/CMakeLists.txt b/src/GeomAPI/CMakeLists.txt index afe2bd4ac..8a66dfa86 100644 --- a/src/GeomAPI/CMakeLists.txt +++ b/src/GeomAPI/CMakeLists.txt @@ -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 index 000000000..ec42fa6b6 --- /dev/null +++ b/src/GeomAPI/GeomAPI_IPresentable.cpp @@ -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() +{ +} diff --git a/src/GeomAPI/GeomAPI_IPresentable.h b/src/GeomAPI/GeomAPI_IPresentable.h index 94021ab80..5bc4de58f 100644 --- a/src/GeomAPI/GeomAPI_IPresentable.h +++ b/src/GeomAPI/GeomAPI_IPresentable.h @@ -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 */