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:
Marco Bubke
2016-08-08 13:11:59 +02:00
parent 98a167c0d5
commit 413a601f69

View File

@@ -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();
}