mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024814: Avoid using explicit names of Handle classes
Sources corrected replacing Handle_XXX by Handle(XXX)
This commit is contained in:
@@ -23,10 +23,10 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
// The Initialization of the Standard_Persistent variables
|
||||
const Handle_Standard_Type& Standard_Persistent_Type_()
|
||||
const Handle(Standard_Type)& Standard_Persistent_Type_()
|
||||
{
|
||||
static const Handle_Standard_Type _Ancestors[]={NULL};
|
||||
static Handle_Standard_Type _aType
|
||||
static const Handle(Standard_Type) _Ancestors[]={NULL};
|
||||
static Handle(Standard_Type) _aType
|
||||
= new Standard_Type("Standard_Persistent",
|
||||
sizeof(Standard_Persistent),
|
||||
0,
|
||||
@@ -42,9 +42,9 @@ const Handle_Standard_Type& Standard_Persistent_Type_()
|
||||
|
||||
// The Method This
|
||||
//
|
||||
Handle_Standard_Persistent Standard_Persistent::This() const
|
||||
Handle(Standard_Persistent) Standard_Persistent::This() const
|
||||
{
|
||||
Handle_Standard_Persistent aHand(this);
|
||||
Handle(Standard_Persistent) aHand(this);
|
||||
|
||||
return aHand;
|
||||
}
|
||||
@@ -108,7 +108,7 @@ Handle(Standard_Persistent)::~Handle(Standard_Persistent)()
|
||||
EndScope();
|
||||
}
|
||||
|
||||
void Handle_Standard_Persistent::RaiseNullObject(const Standard_CString S) const
|
||||
void Handle(Standard_Persistent)::RaiseNullObject(const Standard_CString S) const
|
||||
{
|
||||
Standard_NullObject::Raise(S);
|
||||
}
|
||||
|
@@ -28,9 +28,9 @@ IMPLEMENT_STANDARD_RTTI(Standard_Transient)
|
||||
|
||||
// The Method This
|
||||
//
|
||||
Handle_Standard_Transient Standard_Transient::This() const
|
||||
Handle(Standard_Transient) Standard_Transient::This() const
|
||||
{
|
||||
return Handle_Standard_Transient(this);
|
||||
return Handle(Standard_Transient)(this);
|
||||
}
|
||||
|
||||
// Empty Destructor
|
||||
|
@@ -167,7 +167,7 @@ Standard_Address Standard_Type::Ancestors()const
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
Standard_Boolean Standard_Type::SubType(const Handle_Standard_Type& anOther)const
|
||||
Standard_Boolean Standard_Type::SubType(const Handle(Standard_Type)& anOther)const
|
||||
{
|
||||
// Among ancestors of the type of this, there is the type of anOther
|
||||
return anOther == this ||
|
||||
|
Reference in New Issue
Block a user