]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_Application.h
Salome HOME
Updated events for Model and minor other changes
[modules/shaper.git] / src / Model / Model_Application.h
index 998aba08b0792db08a6c1112a9ef3de1cf6c01f5..c4f578f0443e755afdbd314578199f3d91457f94 100644 (file)
@@ -30,7 +30,7 @@ public:
   //! Retuns the application: one per process    
   MODEL_EXPORT static Handle_Model_Application getApplication();
   //! Returns the main document (on first call creates it) by the string identifier
-  MODEL_EXPORT std::shared_ptr<Model_Document> getDocument(std::string theDocID);
+  MODEL_EXPORT const std::shared_ptr<Model_Document>& getDocument(std::string theDocID);
   //! Deletes the document from the application
   MODEL_EXPORT void deleteDocument(std::string theDocID);