From: mpv Date: Tue, 22 Nov 2016 13:05:56 +0000 (+0300) Subject: FIx for the Linux run-time libraries problem X-Git-Tag: V_2.6.0~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46ccd8cc398e6c408609819aff24156d5cb1d1f0;p=modules%2Fshaper.git FIx for the Linux run-time libraries problem --- diff --git a/src/Model/Model_Document.h b/src/Model/Model_Document.h index 1356f5c09..3a031419e 100644 --- a/src/Model/Model_Document.h +++ b/src/Model/Model_Document.h @@ -282,11 +282,11 @@ class Model_Document : public ModelAPI_Document /// Stores in the document boolean flags: states of the nodes in the object browser. /// Normally is called outside of the transaction, just before "save". - void storeNodesState(const std::list& theStates); + virtual void storeNodesState(const std::list& theStates); /// Returns the stored nodes states. Normally it is calles just after "open". /// Appends the values to theStates list. - void restoreNodesState(std::list& theStates) const; + virtual void restoreNodesState(std::list& theStates) const; friend class Model_Application; friend class Model_Session; diff --git a/src/ModelAPI/ModelAPI_Document.h b/src/ModelAPI/ModelAPI_Document.h index 6b0d2d1ea..427b33267 100644 --- a/src/ModelAPI/ModelAPI_Document.h +++ b/src/ModelAPI/ModelAPI_Document.h @@ -178,11 +178,11 @@ public: /// Stores in the document boolean flags: states of the nodes in the object browser. /// Normally is called outside of the transaction, just before "save". - MODELAPI_EXPORT void storeNodesState(const std::list& theStates); + MODELAPI_EXPORT virtual void storeNodesState(const std::list& theStates) = 0; /// Returns the stored nodes states. Normally it is calles just after "open". /// Appends the values to theStates list. - MODELAPI_EXPORT void restoreNodesState(std::list& theStates) const; + MODELAPI_EXPORT virtual void restoreNodesState(std::list& theStates) const = 0; protected: //! Only for SWIG wrapping it is here