diff --git a/src/corelib/kernel/qpointer.h b/src/corelib/kernel/qpointer.h index a279576493..2da21d7dd2 100644 --- a/src/corelib/kernel/qpointer.h +++ b/src/corelib/kernel/qpointer.h @@ -44,14 +44,14 @@ public: : wp(other.wp.internalData(), true) {} template = true> - QPointer &operator=(const QPointer &other) + QPointer &operator=(const QPointer &other) noexcept { QPointer(other).swap(*this); return *this; } template = true> - QPointer &operator=(QPointer &&other) + QPointer &operator=(QPointer &&other) noexcept { QPointer(std::move(other)).swap(*this); return *this;