Clang: fix QDebug for SmallStringView

Change-Id: I54b200dc142d3d143fd3238ea97c4d6277c6604f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2017-07-03 19:47:48 +02:00
committed by Marco Bubke
parent 9bcbf4eec3
commit 4823bc506c

View File

@@ -73,7 +73,7 @@ QDebug &operator<<(QDebug &debug, const String &string)
{
using QT_PREPEND_NAMESPACE(operator<<);
debug.nospace() << "\"" << string.data() << "\"";
debug.nospace().quote() << QByteArray::fromRawData(string.data(), int(string.size()));
return debug;
}