diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-20 10:13:49 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-24 19:45:59 +0200 |
commit | c2cf5f824a09adf0362f015c1b9d1817dabb04c3 (patch) | |
tree | 54cb2e3bf0bc02d86ccf8f0e8286daaf7092fe59 /src/corelib/kernel/qcore_mac_p.h | |
parent | c4245e7b8ceb233a06cea1ace9439795738adbf8 (diff) |
Whitespace cleanup in corelib/kernel
Change-Id: If061ef0af5ced4384e20a82afcea3712fa7e45d7
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcore_mac_p.h')
-rw-r--r-- | src/corelib/kernel/qcore_mac_p.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index ef31b1928c..13308f11c7 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -262,19 +262,22 @@ public: Q_DISABLE_COPY(QAppleLogActivity) - QAppleLogActivity(QAppleLogActivity&& other) - : activity(qExchange(other.activity, nullptr)), state(other.state) {} + QAppleLogActivity(QAppleLogActivity &&other) + : activity(qExchange(other.activity, nullptr)), state(other.state) + { + } QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QAppleLogActivity) - QAppleLogActivity&& enter() + QAppleLogActivity &&enter() { if (activity) os_activity_scope_enter(static_cast<os_activity_t>(*this), &state); return std::move(*this); } - void leave() { + void leave() + { if (activity) os_activity_scope_leave(&state); } @@ -333,10 +336,13 @@ public: } #endif - QMacNotificationObserver(const QMacNotificationObserver& other) = delete; - QMacNotificationObserver(QMacNotificationObserver&& other) : observer(qExchange(other.observer, nullptr)) {} + QMacNotificationObserver(const QMacNotificationObserver &other) = delete; + QMacNotificationObserver(QMacNotificationObserver &&other) + : observer(qExchange(other.observer, nullptr)) + { + } - QMacNotificationObserver &operator=(const QMacNotificationObserver& other) = delete; + QMacNotificationObserver &operator=(const QMacNotificationObserver &other) = delete; QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QMacNotificationObserver) void swap(QMacNotificationObserver &other) noexcept @@ -378,7 +384,8 @@ public: ~QMacKeyValueObserver() { removeObserver(); } - QMacKeyValueObserver &operator=(const QMacKeyValueObserver &other) { + QMacKeyValueObserver &operator=(const QMacKeyValueObserver &other) + { QMacKeyValueObserver tmp(other); swap(tmp); return *this; |