QAppleLogActivity: add a swap() method
Change-Id: Id698d71fbadf5bd0301a346b3216847d0b2f0b54 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
c441e2cc47
commit
990e2e4fb8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user