changeset 846:2010409af203

Avoid infinite loop in operator<< !
author Chris Cannam
date Tue, 26 Nov 2013 14:32:30 +0000
parents a299c4cec0f8
children 2d53205f70cd c2a399f93843 5821b64c6b26
files base/Debug.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/Debug.cpp	Tue Nov 26 13:48:13 2013 +0000
+++ b/base/Debug.cpp	Tue Nov 26 14:32:30 2013 +0000
@@ -75,12 +75,12 @@
 std::ostream &
 operator<<(std::ostream &target, const QString &str)
 {
-    return target << str;
+    return target << str.toStdString();
 }
 
 std::ostream &
 operator<<(std::ostream &target, const QUrl &u)
 {
-    return target << "<" << u.toString() << ">";
+    return target << "<" << u.toString().toStdString() << ">";
 }