summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/imagemgr.cxx2
-rw-r--r--svtools/source/misc/templatefoldercache.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 92de98d54659..b64cfb8081f4 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -230,7 +230,7 @@ static OUString GetImageExtensionByFactory_Impl( const OUString& rURL )
try
{
// get the TypeDetection service to access all registered types
- css::uno::Reference < css::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
+ const css::uno::Reference < css::uno::XComponentContext >& xContext = ::comphelper::getProcessComponentContext();
css::uno::Reference < css::document::XTypeDetection > xTypeDetector(
xContext->getServiceManager()->createInstanceWithContext(u"com.sun.star.document.TypeDetection"_ustr, xContext),
css::uno::UNO_QUERY );
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 57279a92b08d..14f801f2a2fd 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -755,7 +755,7 @@ namespace svt
std::lock_guard aGuard( m_aMutex );
if ( !m_xOfficeInstDirs.is() )
{
- uno::Reference< uno::XComponentContext > xCtx(
+ const uno::Reference< uno::XComponentContext >& xCtx(
comphelper::getProcessComponentContext() );
m_xOfficeInstDirs = util::theOfficeInstallationDirectories::get(xCtx);
}