Mercurial > hg > svgui
diff widgets/CommandHistory.cpp @ 683:692a8b9804fe
Drop toStdString() and toLocal8Bit().data(), with debug header we can stream QStrings
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:11:04 +0000 |
parents | 1a0dfcbffaf1 |
children | f428bd852580 |
line wrap: on
line diff
--- a/widgets/CommandHistory.cpp Tue Nov 26 14:06:40 2013 +0000 +++ b/widgets/CommandHistory.cpp Tue Nov 26 14:11:04 2013 +0000 @@ -143,7 +143,7 @@ if (!command) return; #ifdef DEBUG_COMMAND_HISTORY - SVDEBUG << "CommandHistory::addCommand: " << command->getName().toLocal8Bit().data() << " of type " << typeid(*command).name() << " at " << command << ": execute = " << execute << ", bundle = " << bundle << " (m_currentCompound = " << m_currentCompound << ", m_currentBundle = " << m_currentBundle << ")" << endl; + SVDEBUG << "CommandHistory::addCommand: " << command->getName() << " of type " << typeid(*command).name() << " at " << command << ": execute = " << execute << ", bundle = " << bundle << " (m_currentCompound = " << m_currentCompound << ", m_currentBundle = " << m_currentBundle << ")" << endl; #endif if (m_currentCompound) { @@ -265,7 +265,7 @@ CommandHistory::addToCompound(Command *command, bool execute) { #ifdef DEBUG_COMMAND_HISTORY - SVDEBUG << "CommandHistory::addToCompound: " << command->getName().toLocal8Bit().data() << endl; + SVDEBUG << "CommandHistory::addToCompound: " << command->getName() << endl; #endif if (!m_currentCompound) { SVDEBUG << "CommandHistory::addToCompound: ERROR: no compound operation in progress!" << endl; @@ -281,7 +281,7 @@ { if (m_currentCompound) { SVDEBUG << "CommandHistory::startCompoundOperation: ERROR: compound operation already in progress!" << endl; - cerr << "(name is " << m_currentCompound->getName().toLocal8Bit().data() << ")" << endl; + cerr << "(name is " << m_currentCompound->getName() << ")" << endl; return; } @@ -436,7 +436,7 @@ for (i = 0; i < limit; ++i) { #ifdef DEBUG_COMMAND_HISTORY Command *command = stack.top(); - SVDEBUG << "CommandHistory::clipStack: Saving recent command: " << command->getName().toLocal8Bit().data() << " at " << command << endl; + SVDEBUG << "CommandHistory::clipStack: Saving recent command: " << command->getName() << " at " << command << endl; #endif tempStack.push(stack.top()); stack.pop();