mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-02 18:06:43 +08: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:
@@ -37,7 +37,7 @@ void TDocStd_ApplicationDelta::Dump(Standard_OStream& anOS) const {
|
||||
Standard_Integer i;
|
||||
for (i = 1; i <= myDocuments.Length(); i++) {
|
||||
Handle(TDocStd_Document) aDocAddr= myDocuments.Value(i);
|
||||
anOS << "\"" << ((Standard_Transient*)aDocAddr);
|
||||
anOS << "\"" << aDocAddr.get();
|
||||
anOS << "\" ";
|
||||
}
|
||||
anOS << ") ";
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <TDF_ListIteratorOfAttributeDeltaList.hxx>
|
||||
#include <TDF_Label.hxx>
|
||||
#include <TDF_Delta.hxx>
|
||||
#include <TDF_Reference.hxx>
|
||||
#include <TDocStd_CompoundDelta.hxx>
|
||||
#include <TDocStd_Owner.hxx>
|
||||
#include <TDocStd_Modified.hxx>
|
||||
|
||||
@@ -193,7 +193,7 @@ void TDocStd_MultiTransactionManager::DumpTransaction(Standard_OStream& anOS) co
|
||||
anOS << "There are " << myDocuments.Length() << " documents ( ";
|
||||
for(i = 1; i <= myDocuments.Length(); i++) {
|
||||
Handle(Standard_Transient) aDoc = myDocuments.Value(i);
|
||||
anOS << "\"" << (Standard_Transient*)aDoc;
|
||||
anOS << "\"" << aDoc.get();
|
||||
anOS << "\" ";
|
||||
}
|
||||
anOS << ") in the manager " << endl;
|
||||
|
||||
Reference in New Issue
Block a user