mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -197,9 +197,9 @@ void Message_Algorithm::SendStatusMessages (const Message_ExecStatus& theStatus,
|
||||
continue;
|
||||
}
|
||||
|
||||
Handle(Message_Msg) aMsgCustom = !myReportMessages.IsNull()
|
||||
? myReportMessages->Value (i)
|
||||
: Handle(Message_Msg)();
|
||||
NCollection_Handle<Message_Msg> aMsgCustom;
|
||||
if (! myReportMessages.IsNull())
|
||||
aMsgCustom = myReportMessages->Value (i);
|
||||
if (!aMsgCustom.IsNull())
|
||||
{
|
||||
// print custom message
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <NCollection_Array1.hxx>
|
||||
#include <NCollection_Handle.hxx>
|
||||
|
||||
typedef NCollection_Array1<Handle(Message_Msg)> Message_ArrayOfMsg;
|
||||
typedef Handle(Message_ArrayOfMsg) Message_HArrayOfMsg;
|
||||
typedef NCollection_Array1<NCollection_Handle<Message_Msg> > Message_ArrayOfMsg;
|
||||
typedef NCollection_Handle<Message_ArrayOfMsg> Message_HArrayOfMsg;
|
||||
|
||||
#endif // _Message_HArrayOfMsg_HeaderFile
|
||||
|
Reference in New Issue
Block a user