mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028832: MMgt_TShared can be replaced by Standard_Transient
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include <TDF_Label.hxx>
|
||||
#include <XSControl_WorkSession.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : STEPCAFControl_ExternFile
|
||||
|
@@ -22,18 +22,18 @@
|
||||
#include <IFSelect_ReturnStatus.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TDF_Label.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
class XSControl_WorkSession;
|
||||
class TCollection_HAsciiString;
|
||||
class TDF_Label;
|
||||
|
||||
|
||||
class STEPCAFControl_ExternFile;
|
||||
DEFINE_STANDARD_HANDLE(STEPCAFControl_ExternFile, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(STEPCAFControl_ExternFile, Standard_Transient)
|
||||
|
||||
//! Auxiliary class serving as container for data resulting
|
||||
//! from translation of external file
|
||||
class STEPCAFControl_ExternFile : public MMgt_TShared
|
||||
class STEPCAFControl_ExternFile : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -935,7 +935,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS
|
||||
continue;
|
||||
|
||||
// find shape
|
||||
NCollection_Vector<Handle(MMgt_TShared)> anItems;
|
||||
NCollection_Vector<Handle(Standard_Transient)> anItems;
|
||||
if (!style->Item().IsNull()) {
|
||||
anItems.Append(style->Item());
|
||||
}
|
||||
|
Reference in New Issue
Block a user