summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-03 01:02:29 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-03 11:47:15 +0200
commit990e2e4fb8ef546b89b5e83e659771edd5b4ed3e (patch)
tree59f3d1e492b210ee27c18b6bf5e868c042d5650e /src
parentc441e2cc476c76496f037f0b5f4bd4bfdd82c727 (diff)
QAppleLogActivity: add a swap() method
Change-Id: Id698d71fbadf5bd0301a346b3216847d0b2f0b54 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qcore_mac_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h
index cb00fe0b24..2d33e2ca95 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<os_activity_t>(static_cast<void *>(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<void *> activity;