summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 15:34:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-26 08:18:10 +0200
commit2fd083579d42d7649c162f18db235498198ff3f4 (patch)
treeb9da2f8f71dc0ed7ae07dfca4e921caf96f7a01b /scripting
parentceea1f3c735b4e6d40cc0cfd8c249b6aff6b4e89 (diff)
loplugin:returnconstval in various
Change-Id: Ib5d293417b1faeb7ef63a8df99fc1ba644989cdc Reviewed-on: https://gerrit.libreoffice.org/78079 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx2
-rw-r--r--scripting/source/stringresource/stringresource.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 2da2fe5be1e1..0387890474fa 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -2647,7 +2647,7 @@ bool StringResourceWithLocationImpl::implLoadLocale( LocaleItem* pLocaleItem )
return bSuccess;
}
-const Reference< ucb::XSimpleFileAccess3 > StringResourceWithLocationImpl::getFileAccess()
+const Reference< ucb::XSimpleFileAccess3 > & StringResourceWithLocationImpl::getFileAccess()
{
::osl::MutexGuard aGuard( getMutex() );
diff --git a/scripting/source/stringresource/stringresource.hxx b/scripting/source/stringresource/stringresource.hxx
index 13ad55a327ec..5e65f06f09b3 100644
--- a/scripting/source/stringresource/stringresource.hxx
+++ b/scripting/source/stringresource/stringresource.hxx
@@ -421,7 +421,7 @@ class StringResourceWithLocationImpl : public StringResourceWithLocationImpl_BAS
css::uno::Reference< css::ucb::XSimpleFileAccess3 > m_xSFI;
css::uno::Reference< css::task::XInteractionHandler > m_xInteractionHandler;
- const css::uno::Reference< css::ucb::XSimpleFileAccess3 > getFileAccess();
+ const css::uno::Reference< css::ucb::XSimpleFileAccess3 > & getFileAccess();
virtual void implScanLocales() override;
virtual bool implLoadLocale( LocaleItem* pLocaleItem ) override;