Commit 413a601f authored by Marco Bubke's avatar Marco Bubke
Browse files

Clang: Prevent endless recursion



SmallString has a char * constructor.

Change-Id: If48f42c4ef667bda921f9c81fd755af037f6f3cf
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 98a167c0
......@@ -807,6 +807,8 @@ QDataStream &operator>>(QDataStream &in, SmallString &string)
inline
QDebug &operator<<(QDebug &debug, const SmallString &string)
{
using QT_USE_NAMESPACE::operator<<;
debug.nospace() << "\"" << string.data() << "\"";
return debug;
......@@ -815,6 +817,8 @@ QDebug &operator<<(QDebug &debug, const SmallString &string)
inline
std::ostream &operator<<(std::ostream &stream, const SmallString &string)
{
using std::operator<<;
return stream << string.data();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment