0024023: Revamp the OCCT Handle -- general
[occt.git] / src / TDocStd / TDocStd_MultiTransactionManager.cxx
index 9e16850..6eb249f 100644 (file)
@@ -4,8 +4,8 @@
 //
 // This file is part of Open CASCADE Technology software library.
 //
-// This library is free software; you can redistribute it and / or modify it
-// under the terms of the GNU Lesser General Public version 2.1 as published
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
 // by the Free Software Foundation, with special exception defined in the file
 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
 // distribution for complete text of the license and disclaimer of any warranty.
@@ -99,7 +99,7 @@ void TDocStd_MultiTransactionManager::Redo() {
 
 void TDocStd_MultiTransactionManager::OpenCommand() {
   if (myOpenTransaction) {
-#ifdef DEB
+#ifdef OCCT_DEBUG
     cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
             "Can't start new application transaction while a "
             "previous one is not commited or aborted" << endl;
@@ -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;