SlotObjectGuard: mark ctor nodiscard
QUIP: 19 Change-Id: Idaf8cda12fe2ca97a763d78ff4c8cd7304d178e5 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 3a166fa45ddd4435c15b94a8c9c77871c0aae43d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a966e35ec0
commit
147ad81c1f
@ -3762,7 +3762,7 @@ struct SlotObjectGuard {
|
||||
SlotObjectGuard() = default;
|
||||
// move would be fine, but we do not need it currently
|
||||
Q_DISABLE_COPY_MOVE(SlotObjectGuard)
|
||||
explicit SlotObjectGuard(QtPrivate::QSlotObjectBase *slotObject)
|
||||
Q_NODISCARD_CTOR explicit SlotObjectGuard(QtPrivate::QSlotObjectBase *slotObject)
|
||||
: m_slotObject(slotObject)
|
||||
{
|
||||
if (m_slotObject)
|
||||
|
Loading…
x
Reference in New Issue
Block a user