]> OCCT Git - occt.git/commitdiff
0033228: Data Exchange, DE Wrapper - Make the document argument of the method Read...
authordpasukhi <dpasukhi@opencascade.com>
Tue, 29 Nov 2022 09:36:58 +0000 (09:36 +0000)
committersmoskvin <smoskvin@opencascade.com>
Sun, 4 Dec 2022 10:46:37 +0000 (13:46 +0300)
Rewrite document argument for DE_Wrapper Read method

src/DE/DE_Wrapper.cxx
src/DE/DE_Wrapper.hxx

index c9f5b065174f89fe94387cb98a6fde34f20e2ab0..59ce5cb0d6304f10f949875b3dec4bb385dd2d68 100644 (file)
@@ -81,7 +81,7 @@ Handle(DE_Wrapper) DE_Wrapper::GlobalWrapper()
 // purpose  :
 //=======================================================================
 Standard_Boolean DE_Wrapper::Read(const TCollection_AsciiString& thePath,
-                                  Handle(TDocStd_Document)& theDocument,
+                                  const Handle(TDocStd_Document)& theDocument,
                                   Handle(XSControl_WorkSession)& theWS,
                                   const Message_ProgressRange& theProgress)
 {
@@ -131,7 +131,7 @@ Standard_Boolean DE_Wrapper::Write(const TCollection_AsciiString& thePath,
 // purpose  :
 //=======================================================================
 Standard_Boolean DE_Wrapper::Read(const TCollection_AsciiString& thePath,
-                                  Handle(TDocStd_Document)& theDocument,
+                                  const Handle(TDocStd_Document)& theDocument,
                                   const Message_ProgressRange& theProgress)
 {
   if (theDocument.IsNull())
index 030153a48d7bb7f0d0958b9ced18137fb5d2b0af..b0e44718718dbe849b315c50922f3c46ae18f278 100644 (file)
@@ -74,7 +74,7 @@ public:
   //! @param theProgress[in] progress indicator
   //! @return true if Read operation has ended correctly
   Standard_EXPORT Standard_Boolean Read(const TCollection_AsciiString& thePath,
-                                        Handle(TDocStd_Document)& theDocument,
+                                        const Handle(TDocStd_Document)& theDocument,
                                         Handle(XSControl_WorkSession)& theWS,
                                         const Message_ProgressRange& theProgress = Message_ProgressRange());
 
@@ -95,7 +95,7 @@ public:
   //! @param theProgress[in] progress indicator
   //! @return true if Read operation has ended correctly
   Standard_EXPORT Standard_Boolean Read(const TCollection_AsciiString& thePath,
-                                        Handle(TDocStd_Document)& theDocument,
+                                        const Handle(TDocStd_Document)& theDocument,
                                         const Message_ProgressRange& theProgress = Message_ProgressRange());
 
   //! Writes a CAD file, according internal configuration