From b6c1b6de84e1c1a1b76e9846986f414df14db15b Mon Sep 17 00:00:00 2001 From: Vitaly SMETANNIKOV Date: Fri, 10 Jul 2015 12:42:16 +0300 Subject: [PATCH] Avoid problem with dynamic_cast under SALOME release --- src/GeomAPI/CMakeLists.txt | 1 + src/GeomAPI/GeomAPI_IPresentable.cpp | 17 +++++++++++++++++ src/GeomAPI/GeomAPI_IPresentable.h | 1 + 3 files changed, 19 insertions(+) create mode 100644 src/GeomAPI/GeomAPI_IPresentable.cpp 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 */ -- 2.39.2