summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/doc/snippets')
-rw-r--r--src/corelib/doc/snippets/customtype/customtypeexample.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/doc/snippets/customtype/customtypeexample.cpp b/src/corelib/doc/snippets/customtype/customtypeexample.cpp
index afa2c4b2688..43f7ac7c3ae 100644
--- a/src/corelib/doc/snippets/customtype/customtypeexample.cpp
+++ b/src/corelib/doc/snippets/customtype/customtypeexample.cpp
@@ -39,6 +39,7 @@ QDebug operator<<(QDebug dbg, const Message &message);
//! [custom type streaming operator]
QDebug operator<<(QDebug dbg, const Message &message)
{
+ QDebugStateSaver saver(dbg);
const QList<QStringView> pieces = message.body().split(u"\r\n", Qt::SkipEmptyParts);
if (pieces.isEmpty())
dbg.nospace() << "Message()";