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,12 +20,12 @@
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <NCollection_DefineArray1.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
// Declaration of Array1 class managed by Handle
|
||||
|
||||
#define DEFINE_HARRAY1(HClassName, _Array1Type_) \
|
||||
class HClassName : public _Array1Type_, public MMgt_TShared { \
|
||||
class HClassName : public _Array1Type_, public Standard_Transient { \
|
||||
public: \
|
||||
DEFINE_STANDARD_ALLOC \
|
||||
DEFINE_NCOLLECTION_ALLOC \
|
||||
@@ -39,9 +39,9 @@ class HClassName : public _Array1Type_, public MMgt_TShared { \
|
||||
HClassName (const _Array1Type_& theOther) : _Array1Type_(theOther) {} \
|
||||
const _Array1Type_& Array1 () const { return *this; } \
|
||||
_Array1Type_& ChangeArray1 () { return *this; } \
|
||||
DEFINE_STANDARD_RTTI_INLINE(HClassName,MMgt_TShared) \
|
||||
DEFINE_STANDARD_RTTI_INLINE(HClassName,Standard_Transient) \
|
||||
}; \
|
||||
DEFINE_STANDARD_HANDLE (HClassName, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE (HClassName, Standard_Transient)
|
||||
|
||||
#define IMPLEMENT_HARRAY1(HClassName)
|
||||
|
||||
|
Reference in New Issue
Block a user