summaryrefslogtreecommitdiff
path: root/desktop/source/app/dispatchwatcher.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/app/dispatchwatcher.cxx')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index 2f5524ae2d68..faf830ffae3c 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -102,7 +102,7 @@ std::shared_ptr<const SfxFilter> impl_lookupExportFilterForUrl( std::u16string_v
":eflags=" +
OUString::number(static_cast<int>(SFX_FILTER_NOTINSTALLED));
- const Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() );
+ const Reference< XComponentContext >& xContext( comphelper::getProcessComponentContext() );
const Reference< XContainerQuery > xFilterFactory(
xContext->getServiceManager()->createInstanceWithContext( u"com.sun.star.document.FilterFactory"_ustr, xContext ),
UNO_QUERY_THROW );
@@ -134,7 +134,7 @@ std::shared_ptr<const SfxFilter> impl_getExportFilterFromUrl(
{
try
{
- const Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() );
+ const Reference< XComponentContext >& xContext( comphelper::getProcessComponentContext() );
const Reference< document::XTypeDetection > xTypeDetector(
xContext->getServiceManager()->createInstanceWithContext( u"com.sun.star.document.TypeDetection"_ustr, xContext ),
UNO_QUERY_THROW );