From 87030862d4750b456f876dc48310d87ed48848f0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Feb 2020 21:07:41 +0200 Subject: 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 --- toolkit/source/awt/vclxwindow.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'toolkit/source/awt/vclxwindow.cxx') 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(); -- cgit