diff options
Diffstat (limited to 'src/corelib/doc/snippets')
| -rw-r--r-- | src/corelib/doc/snippets/customtype/customtypeexample.cpp | 1 |
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()"; |
