diff transform/Transform.cpp @ 686:b4a8d8221eaf debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:24 +0100
parents ecbd99d5d2c4
children 06f13a3b9e9e
line wrap: on
line diff
--- a/transform/Transform.cpp	Thu May 12 16:56:08 2011 +0100
+++ b/transform/Transform.cpp	Thu May 12 17:31:24 2011 +0100
@@ -54,10 +54,10 @@
 
     if (!doc.setContent(xml, false, &error, &errorLine, &errorColumn)) {
         std::cerr << "Transform::Transform: Error in parsing XML: "
-                  << error.toStdString() << " at line " << errorLine
+                  << error << " at line " << errorLine
                   << ", column " << errorColumn << std::endl;
         std::cerr << "Input follows:" << std::endl;
-        std::cerr << xml.toStdString() << std::endl;
+        std::cerr << xml << std::endl;
         std::cerr << "Input ends." << std::endl;
         return;
     }
@@ -126,9 +126,9 @@
 /*
     std::cerr << "Transform::operator==: identical = " << identical << std::endl;
     std::cerr << "A = " << std::endl;
-    std::cerr << toXmlString().toStdString() << std::endl;
+    std::cerr << toXmlString() << std::endl;
     std::cerr << "B = " << std::endl;
-    std::cerr << t.toXmlString().toStdString() << std::endl;
+    std::cerr << t.toXmlString() << std::endl;
 */
     return identical;
 }
@@ -281,7 +281,7 @@
 Transform::setConfigurationValue(QString name, QString value)
 {
     std::cerr << "Transform::setConfigurationValue(" << name.toStdString()
-              << ") -> " << value.toStdString() << std::endl;
+              << ") -> " << value << std::endl;
     m_configuration[name] = value;
 }
 
@@ -464,7 +464,7 @@
     if (str == "count") return Count;
     if (str == "") return NoSummary;
     std::cerr << "Transform::stringToSummaryType: unknown summary type \""
-              << str.toStdString() << "\"" << std::endl;
+              << str << "\"" << std::endl;
     return NoSummary;
 }