From 46ccd8cc398e6c408609819aff24156d5cb1d1f0 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 22 Nov 2016 16:05:56 +0300 Subject: [PATCH] FIx for the Linux run-time libraries problem --- src/Model/Model_Document.h | 4 ++-- src/ModelAPI/ModelAPI_Document.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2