changeset 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 917039d333bb b6397738444c d8fc9659a206
files layer/LayerFactory.cpp view/Pane.cpp widgets/CommandHistory.cpp widgets/PropertyBox.cpp
diffstat 4 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/layer/LayerFactory.cpp	Tue Nov 26 14:06:40 2013 +0000
+++ b/layer/LayerFactory.cpp	Tue Nov 26 14:11:04 2013 +0000
@@ -480,7 +480,7 @@
         for (unsigned int i = 0; i < attrNodes.length(); ++i) {
             QDomAttr attr = attrNodes.item(i).toAttr();
             if (attr.isNull()) continue;
-//            cerr << "append \"" << attr.name().toStdString()
+//            cerr << "append \"" << attr.name()
 //                      << "\" -> \"" << attr.value() << "\""
 //                      << endl;
             attrs.append(attr.name(), "", "", attr.value());
@@ -492,7 +492,7 @@
             QDomAttr attr = attrNodes.item(i).toAttr();
             if (attr.isNull()) continue;
             if (attrs.value(attr.name()) == "") {
-//                cerr << "append \"" << attr.name().toStdString()
+//                cerr << "append \"" << attr.name()
 //                          << "\" -> \"" << attr.value() << "\""
 //                          << endl;
                 attrs.append(attr.name(), "", "", attr.value());
--- a/view/Pane.cpp	Tue Nov 26 14:06:40 2013 +0000
+++ b/view/Pane.cpp	Tue Nov 26 14:11:04 2013 +0000
@@ -2257,7 +2257,7 @@
 {
     QStringList formats(e->mimeData()->formats());
     cerr << "dragEnterEvent: format: "
-              << formats.join(",").toStdString()
+              << formats.join(",")
               << ", possibleActions: " << e->possibleActions()
               << ", proposedAction: " << e->proposedAction() << endl;
     
@@ -2276,7 +2276,7 @@
 void
 Pane::dropEvent(QDropEvent *e)
 {
-    cerr << "dropEvent: text: \"" << e->mimeData()->text().toStdString()
+    cerr << "dropEvent: text: \"" << e->mimeData()->text()
               << "\"" << endl;
 
     if (e->mimeData()->hasFormat("text/uri-list") || 
--- 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();
--- a/widgets/PropertyBox.cpp	Tue Nov 26 14:06:40 2013 +0000
+++ b/widgets/PropertyBox.cpp	Tue Nov 26 14:11:04 2013 +0000
@@ -275,7 +275,7 @@
 
 #ifdef DEBUG_PROPERTY_BOX
     cerr << "PropertyBox[" << this
-	      << "(\"" << m_container->getPropertyContainerName().toStdString()
+	      << "(\"" << m_container->getPropertyContainerName()
 	      << "\")]";
     cerr << "::updatePropertyEditor(\"" << name << "\"):";
     cerr << " value " << value << ", have " << have << ", group \""