forked from qt-creator/qt-creator
Clang: Prevent endless recursion
SmallString has a char * constructor. Change-Id: If48f42c4ef667bda921f9c81fd755af037f6f3cf Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -807,6 +807,8 @@ QDataStream &operator>>(QDataStream &in, SmallString &string)
|
|||||||
inline
|
inline
|
||||||
QDebug &operator<<(QDebug &debug, const SmallString &string)
|
QDebug &operator<<(QDebug &debug, const SmallString &string)
|
||||||
{
|
{
|
||||||
|
using QT_USE_NAMESPACE::operator<<;
|
||||||
|
|
||||||
debug.nospace() << "\"" << string.data() << "\"";
|
debug.nospace() << "\"" << string.data() << "\"";
|
||||||
|
|
||||||
return debug;
|
return debug;
|
||||||
@@ -815,6 +817,8 @@ QDebug &operator<<(QDebug &debug, const SmallString &string)
|
|||||||
inline
|
inline
|
||||||
std::ostream &operator<<(std::ostream &stream, const SmallString &string)
|
std::ostream &operator<<(std::ostream &stream, const SmallString &string)
|
||||||
{
|
{
|
||||||
|
using std::operator<<;
|
||||||
|
|
||||||
return stream << string.data();
|
return stream << string.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user