summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r--svx/source/tbxctrls/PaletteManager.cxx2
-rw-r--r--svx/source/tbxctrls/fontworkgallery.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx
index 894d38808f84..426da02c94d8 100644
--- a/svx/source/tbxctrls/PaletteManager.cxx
+++ b/svx/source/tbxctrls/PaletteManager.cxx
@@ -444,7 +444,7 @@ void PaletteManager::DispatchColorCommand(const OUString& aCommand, const NamedC
using namespace css::beans;
using namespace css::util;
- Reference<XComponentContext> xContext(comphelper::getProcessComponentContext());
+ const Reference<XComponentContext>& xContext(comphelper::getProcessComponentContext());
Reference<XDesktop2> xDesktop = Desktop::create(xContext);
Reference<XFrame> xFrame(xDesktop->getCurrentFrame());
Reference<XDispatchProvider> xDispatchProvider(xFrame, UNO_QUERY);
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 7cbf3479f4b5..746afd8a0400 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -195,7 +195,7 @@ void FontWorkGalleryDialog::insertSelectedFontwork()
pPage->GetObj(0)->CloneSdrObject(
bUseSpecialCalcMode ? *mpDestModel : mrSdrView.getSdrModelFromSdrView()));
- Reference<XComponentContext> xContext = comphelper::getProcessComponentContext();
+ const Reference<XComponentContext>& xContext = comphelper::getProcessComponentContext();
css::uno::Reference<css::frame::XModuleManager> xModuleManager =
css::frame::ModuleManager::create(xContext);
OUString aModuleIdentifier = xModuleManager->identify(mxFrame);