Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
845:a299c4cec0f8 | 846:2010409af203 |
---|---|
73 } | 73 } |
74 | 74 |
75 std::ostream & | 75 std::ostream & |
76 operator<<(std::ostream &target, const QString &str) | 76 operator<<(std::ostream &target, const QString &str) |
77 { | 77 { |
78 return target << str; | 78 return target << str.toStdString(); |
79 } | 79 } |
80 | 80 |
81 std::ostream & | 81 std::ostream & |
82 operator<<(std::ostream &target, const QUrl &u) | 82 operator<<(std::ostream &target, const QUrl &u) |
83 { | 83 { |
84 return target << "<" << u.toString() << ">"; | 84 return target << "<" << u.toString().toStdString() << ">"; |
85 } | 85 } |
86 | 86 |