From ec2ef30f204fabbb5be81b25b0aa7a33e3546226 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 13 Aug 2015 21:00:02 -0300 Subject: [PATCH] Add some logging in debug mode for Cmd() members --- src/app/cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/cmd.cpp b/src/app/cmd.cpp index fb82eb42b..d9524af1c 100644 --- a/src/app/cmd.cpp +++ b/src/app/cmd.cpp @@ -26,6 +26,7 @@ Cmd::~Cmd() void Cmd::execute(Context* ctx) { + DLOG("Cmd: Executing cmd '%s'\n", typeid(*this).name()); ASSERT(m_state == State::NotExecuted); m_ctx = ctx; @@ -40,6 +41,7 @@ void Cmd::execute(Context* ctx) void Cmd::undo() { + DLOG("Cmd: Undo cmd '%s'\n", typeid(*this).name()); ASSERT(m_state == State::Executed || m_state == State::Redone); onUndo(); @@ -52,6 +54,7 @@ void Cmd::undo() void Cmd::redo() { + DLOG("Cmd: Redo cmd '%s'\n", typeid(*this).name()); ASSERT(m_state == State::Undone); onRedo();