summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-02-07 21:07:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-08 11:23:19 +0100
commit87030862d4750b456f876dc48310d87ed48848f0 (patch)
treed7ff2dc74aea78648a762e9b5dfe71a192fccf1a /toolkit
parent5088e6d34b0ffba423f8633ee83673a9c1d40036 (diff)
replace some more copy/clear with swap
Change-Id: I6501dd59682d2605e9b9856c2deaa02a873ce641 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88239 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindow.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 1381a7fa3570..f33daf8eee3e 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -269,8 +269,7 @@ IMPL_LINK_NOARG(VCLXWindowImpl, OnProcessCallbacks, void*, void)
CallbackArray aCallbacksCopy;
{
SolarMutexGuard aGuard;
- aCallbacksCopy = maCallbackEvents;
- maCallbackEvents.clear();
+ aCallbacksCopy.swap(maCallbackEvents);
// we acquired our VCLXWindow once before posting the event, release this one ref now
mrAntiImpl.release();