summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-01-21 16:28:33 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-24 08:36:24 +0100
commit654c5272299057681d295afb76fc984b20868c7c (patch)
tree3deb7bb0b8b787f90ae5b95b59f41d9debcbc8ba /forms
parentb35f6971561bc095965e82f230e0307f6694228b (diff)
Use ContainerType().swap and avoid local variables
Change-Id: I773555180758a97aff37f9bc27de83c355d71521 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109761 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/helper/formnavigation.cxx3
-rw-r--r--forms/source/richtext/richtextcontrol.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/forms/source/helper/formnavigation.cxx b/forms/source/helper/formnavigation.cxx
index 5182b0544db6..547a5781649a 100644
--- a/forms/source/helper/formnavigation.cxx
+++ b/forms/source/helper/formnavigation.cxx
@@ -346,8 +346,7 @@ namespace frm
{
disconnectDispatchers( );
// no supported features anymore:
- FeatureMap aEmpty;
- m_aSupportedFeatures.swap( aEmpty );
+ FeatureMap().swap(m_aSupportedFeatures);
}
OFormNavigationMapper::OFormNavigationMapper( const Reference< XComponentContext >& _rxORB )
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index 256c257b2f2c..1514eca99729 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -304,8 +304,7 @@ namespace frm
}
}
- AttributeDispatchers aEmpty;
- m_aDispatchers.swap( aEmpty );
+ AttributeDispatchers().swap(m_aDispatchers);
}
VCLXWindow::dispose();