diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 357fc6cf7f6..7390a9c8bce 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -214,7 +214,7 @@ class QDebugStateSaverPrivate; class QDebugStateSaver { public: - Q_CORE_EXPORT + Q_NODISCARD_CTOR Q_CORE_EXPORT QDebugStateSaver(QDebug &dbg); Q_CORE_EXPORT ~QDebugStateSaver();