summaryrefslogtreecommitdiff
path: root/desktop/source/app/appinit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/app/appinit.cxx')
-rw-r--r--desktop/source/app/appinit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index 6c7637f32f9e..a9d70d3da45a 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -228,7 +228,7 @@ void Desktop::createAcceptor(const OUString& aAcceptString)
}
Sequence< Any > aSeq{ Any(aAcceptString), Any(bAccept) };
- Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
+ const Reference< XComponentContext >& xContext = ::comphelper::getProcessComponentContext();
Reference<XInitialization> rAcceptor(
xContext->getServiceManager()->createInstanceWithContext(u"com.sun.star.office.Acceptor"_ustr, xContext),
UNO_QUERY );