summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-12 10:47:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-12 10:55:57 +0100
commitd49e2e46099e3599bdc8d81efe9ee8bd1cdcb6ee (patch)
tree51e4e8136590a55681f57ac3e973a204768bc808 /vcl
parente4e28359d688992deb8be5fbfdb3bcae855a7fe2 (diff)
use std::<some_container>::swap, instead of copy and clear
Change-Id: If49c33e271426ff5c2d0c6cc4010670f797bdd38 Reviewed-on: https://gerrit.libreoffice.org/65001 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/gtksalframe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx
index a4e6e0fdcd2d..8b420b49793f 100644
--- a/vcl/unx/gtk/gtksalframe.cxx
+++ b/vcl/unx/gtk/gtksalframe.cxx
@@ -2473,8 +2473,8 @@ void GtkSalFrame::createNewWindow( ::Window aNewParent, bool bXEmbed, SalX11Scre
if( bWasVisible )
Show( true );
- std::list< GtkSalFrame* > aChildren = m_aChildren;
- m_aChildren.clear();
+ std::list< GtkSalFrame* > aChildren;
+ aChildren.swap(m_aChildren);
for (auto const& child : aChildren)
child->createNewWindow( None, false, m_nXScreen );