diff options
Diffstat (limited to 'src/corelib/kernel/qbasictimer.h')
-rw-r--r-- | src/corelib/kernel/qbasictimer.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/corelib/kernel/qbasictimer.h b/src/corelib/kernel/qbasictimer.h index b9bfd636bc..64a9acbe6e 100644 --- a/src/corelib/kernel/qbasictimer.h +++ b/src/corelib/kernel/qbasictimer.h @@ -61,11 +61,7 @@ public: : id{qExchange(other.id, 0)} {} - QBasicTimer& operator=(QBasicTimer &&other) noexcept - { - QBasicTimer{std::move(other)}.swap(*this); - return *this; - } + QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QBasicTimer) void swap(QBasicTimer &other) noexcept { qSwap(id, other.id); } |