From 62f554bc3f1543c6691fedb7cda751f7f9ec894b Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Tue, 29 Nov 2022 09:36:58 +0000 Subject: [PATCH] 0033228: Data Exchange, DE Wrapper - Make the document argument of the method Read const handle Rewrite document argument for DE_Wrapper Read method --- src/DE/DE_Wrapper.cxx | 4 ++-- src/DE/DE_Wrapper.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DE/DE_Wrapper.cxx b/src/DE/DE_Wrapper.cxx index c9f5b06517..59ce5cb0d6 100644 --- a/src/DE/DE_Wrapper.cxx +++ b/src/DE/DE_Wrapper.cxx @@ -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()) diff --git a/src/DE/DE_Wrapper.hxx b/src/DE/DE_Wrapper.hxx index 030153a48d..b0e4471871 100644 --- a/src/DE/DE_Wrapper.hxx +++ b/src/DE/DE_Wrapper.hxx @@ -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