1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028039: Coding rules, TObj - pass file name by reference

This commit is contained in:
kgv
2016-11-02 12:50:02 +03:00
committed by apn
parent 9c189bd8dc
commit be70005cb5
4 changed files with 18 additions and 25 deletions

View File

@@ -24,12 +24,10 @@
#include <Message_Messenger.hxx>
#include <TColStd_SequenceOfExtendedString.hxx>
//!
//! This is a base class for OCAF based TObj models
//! with declared virtual methods
//!
class TObj_Application : public TDocStd_Application
{
public:
@@ -45,14 +43,14 @@ public:
*/
//! Saving the OCAF document to a file
virtual Standard_EXPORT Standard_Boolean SaveDocument
(const Handle(TDocStd_Document)& theSourceDoc,
const TCollection_ExtendedString theTargetFile);
Standard_EXPORT virtual Standard_Boolean SaveDocument
(const Handle(TDocStd_Document)& theSourceDoc,
const TCollection_ExtendedString& theTargetFile);
//! Loading the OCAF document from a file
virtual Standard_EXPORT Standard_Boolean LoadDocument
(const TCollection_ExtendedString theSourceFile,
Handle(TDocStd_Document)& theTargetDoc);
Standard_EXPORT virtual Standard_Boolean LoadDocument
(const TCollection_ExtendedString& theSourceFile,
Handle(TDocStd_Document)& theTargetDoc);
//! Create the OCAF document from scratch
virtual Standard_EXPORT Standard_Boolean CreateNewDocument
@@ -117,7 +115,3 @@ public:
DEFINE_STANDARD_HANDLE(TObj_Application,TDocStd_Application)
#endif
#ifdef _MSC_VER
#pragma once
#endif