# HG changeset patch # User Chris Cannam # Date 1385476350 0 # Node ID 2010409af2039ef7c1e5a02d49b3f0c4a3bdddf3 # Parent a299c4cec0f82099b61307b8f974fb12c6fb44fd Avoid infinite loop in operator<< ! diff -r a299c4cec0f8 -r 2010409af203 base/Debug.cpp --- 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() << ">"; }