Mercurial > hg > svcore
diff base/Debug.cpp @ 846:2010409af203
Avoid infinite loop in operator<< !
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:32:30 +0000 |
parents | a299c4cec0f8 |
children | 90e9a3f873cf |
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() << ">"; }