Salome HOME
FIx for the Linux run-time libraries problem
authormpv <mpv@opencascade.com>
Tue, 22 Nov 2016 13:05:56 +0000 (16:05 +0300)
committermpv <mpv@opencascade.com>
Tue, 22 Nov 2016 13:05:56 +0000 (16:05 +0300)
src/Model/Model_Document.h
src/ModelAPI/ModelAPI_Document.h

index 1356f5c09fa18d4f125ddf89f1c26bbfbf11476e..3a031419e42e392d678b2724aef9c43680b70a9d 100644 (file)
@@ -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<bool>& theStates);
+  virtual void storeNodesState(const std::list<bool>& theStates);
 
   /// Returns the stored nodes states. Normally it is calles just after "open".
   /// Appends the values to theStates list.
-  void restoreNodesState(std::list<bool>& theStates) const;
+  virtual void restoreNodesState(std::list<bool>& theStates) const;
 
   friend class Model_Application;
   friend class Model_Session;
index 6b0d2d1ea1b244bb31962006ac700f4bc7759d1a..427b332671e649461e7bef7ddad2798e9d2511f9 100644 (file)
@@ -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<bool>& theStates);
+  MODELAPI_EXPORT virtual void storeNodesState(const std::list<bool>& 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<bool>& theStates) const;
+  MODELAPI_EXPORT virtual void restoreNodesState(std::list<bool>& theStates) const = 0;
 
 protected:
   //! Only for SWIG wrapping it is here