summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/quuid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin/quuid.cpp')
-rw-r--r--src/corelib/plugin/quuid.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/plugin/quuid.cpp b/src/corelib/plugin/quuid.cpp
index facd1804da..bfe8dfc3c4 100644
--- a/src/corelib/plugin/quuid.cpp
+++ b/src/corelib/plugin/quuid.cpp
@@ -986,10 +986,15 @@ QUuid QUuid::createUuid()
guid; otherwise returns false.
*/
-#if !defined(QT_NO_DEBUG_STREAM) && !defined(QT_NO_QUUID_STRING)
+#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug dbg, const QUuid &id)
{
+#ifndef QT_NO_QUUID_STRING
dbg.nospace() << "QUuid(" << id.toString() << ')';
+#else
+ Q_UNUSED(id)
+ dbg.nospace() << "QUuid(QT_NO_QUUID_STRING)";
+#endif
return dbg.space();
}
#endif