summaryrefslogtreecommitdiff
path: root/svx/source/form/fmshimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form/fmshimp.cxx')
-rw-r--r--svx/source/form/fmshimp.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 878f7f60f412..96f10415d48b 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -911,8 +911,7 @@ void FmXFormShell::disposing()
m_xExtViewTriggerController = nullptr;
m_xExternalDisplayedForm = nullptr;
- InterfaceBag aEmpty;
- m_aCurrentSelection.swap( aEmpty );
+ InterfaceBag().swap(m_aCurrentSelection);
m_aActiveControllerFeatures.dispose();
m_aNavControllerFeatures.dispose();
@@ -1407,8 +1406,7 @@ void FmXFormShell::ExecuteSearch_Lock()
return;
// a collection of all (logical) forms
- FmFormArray aEmpty;
- m_aSearchForms.swap( aEmpty );
+ FmFormArray().swap(m_aSearchForms);
::std::vector< OUString > aContextNames;
impl_collectFormSearchContexts_nothrow_Lock(
m_pShell->GetCurPage()->GetForms(), OUString(),