QDebugStateSaver: mark ctors [[nodiscard]]
It's a RAII class, and RAII classes should have only [[nodiscard]] constructors. Pick-to: 6.6 Task-number: QTBUG-104164 Change-Id: Ia83fa003677a839734208b12bde2c6287c1b79a3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
ffed431293
commit
8cad4c2903
@ -214,7 +214,7 @@ class QDebugStateSaverPrivate;
|
|||||||
class QDebugStateSaver
|
class QDebugStateSaver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Q_CORE_EXPORT
|
Q_NODISCARD_CTOR Q_CORE_EXPORT
|
||||||
QDebugStateSaver(QDebug &dbg);
|
QDebugStateSaver(QDebug &dbg);
|
||||||
Q_CORE_EXPORT
|
Q_CORE_EXPORT
|
||||||
~QDebugStateSaver();
|
~QDebugStateSaver();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user