From 990e2e4fb8ef546b89b5e83e659771edd5b4ed3e Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sat, 3 Oct 2020 01:02:29 +0200 Subject: [PATCH] QAppleLogActivity: add a swap() method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id698d71fbadf5bd0301a346b3216847d0b2f0b54 Reviewed-by: Tor Arne Vestbø --- src/corelib/kernel/qcore_mac_p.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index cb00fe0b24c..2d33e2ca95e 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -293,6 +293,12 @@ public: return reinterpret_cast(static_cast(activity)); } + void swap(QAppleLogActivity &other) + { + qSwap(activity, other.activity); + qSwap(state, other.state); + } + private: // Work around API_AVAILABLE not working for templates by using void* QAppleOsType activity;