diff --git a/src/undo/UndoRedoHandler.cpp b/src/undo/UndoRedoHandler.cpp index f3d3f5a1..ec61f49f 100644 --- a/src/undo/UndoRedoHandler.cpp +++ b/src/undo/UndoRedoHandler.cpp @@ -5,7 +5,7 @@ #include #include -#include +#include #ifdef UNDO_TRACE @@ -13,11 +13,11 @@ void printAction(UndoAction* action) { if (action) { - cout << action << " / " << action->getClassName() << endl; + g_message("%" PRIu64 " / %s", (uint64_t)action, action->getClassName()); } else { - cout << "(null)" << endl; + g_message("(null)"); } } @@ -34,12 +34,12 @@ void printUndoList(GList* list) #ifdef UNDO_TRACE #define PRINTCONTENTS() \ - cout << "redoList" << endl; \ + g_message("redoList"); \ printUndoList(this->redoList); \ - cout << "undoList" << endl; \ + g_message("undoList"); \ printUndoList(this->undoList); \ - cout << endl << "savedUndo" << endl; \ - if(this->savedUndo) \ + g_message("savedUndo"); \ + if (this->savedUndo) \ { \ printAction(this->savedUndo); \ } @@ -79,7 +79,7 @@ void UndoRedoHandler::clearContents() UndoAction* action = (UndoAction*) l->data; #ifdef UNDO_TRACE - cout << boost::format("clearContents()::Delete UndoAction: %p / %s") % action % action->getClassName() << endl; // + g_message("clearContents()::Delete UndoAction: %" PRIu64 " / %s", (uint64_t)action, action->getClassName()); #endif //UNDO_TRACE delete action; @@ -104,9 +104,8 @@ void UndoRedoHandler::clearRedo() UndoAction* action = (UndoAction*) l->data; #ifdef UNDO_TRACE - cout << "clearRedo()::Delete UndoAction: " << action - << " / " << action->getClassName() << endl; -#endif //UNDO_TRACE + g_message("clearRedo()::Delete UndoAction: %" PRIu64 " / %s", (uint64_t)action, action->getClassName()); +#endif delete action; } diff --git a/src/view/DocumentView.cpp b/src/view/DocumentView.cpp index 239b648f..fb65a713 100644 --- a/src/view/DocumentView.cpp +++ b/src/view/DocumentView.cpp @@ -370,7 +370,7 @@ void DocumentView::drawLayer(cairo_t* cr, Layer* l) } #ifdef DEBUG_SHOW_REPAINT_BOUNDS - cout << bl::format("DBG:DocumentView: draw {1} / not draw {2}") % drawed % notDrawed << endl; + g_message("DBG:DocumentView: draw %i / not draw %i", drawed, notDrawed); #endif // DEBUG_SHOW_REPAINT_BOUNDS }