diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 12:28:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 18:19:09 +0200 |
commit | 4dbe4a9313d9844c10f71b29a77218d31bc6f3b3 (patch) | |
tree | caf0ca4ceb3cbbb2aaf1255cebbcb8b38d6d45c5 /svtools | |
parent | 9e1aee666fa48b768c829bbc707f47a98250df1e (diff) |
loplugin:passstuffbyref
Change-Id: I4f01eb3842ef198f02af274f54afb2760c820a4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120655
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/templatefoldercache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx index 1faa04470f41..cf9d5e5aace6 100644 --- a/svtools/source/misc/templatefoldercache.cxx +++ b/svtools/source/misc/templatefoldercache.cxx @@ -422,7 +422,7 @@ namespace svt static bool equalStates( const TemplateFolderContent& _rLHS, const TemplateFolderContent& _rRHS ); // late initialize m_xOfficeInstDirs - uno::Reference< util::XOfficeInstallationDirectories > getOfficeInstDirs(); + const uno::Reference< util::XOfficeInstallationDirectories >& getOfficeInstDirs(); }; @@ -753,7 +753,7 @@ namespace svt } - uno::Reference< util::XOfficeInstallationDirectories > + const uno::Reference< util::XOfficeInstallationDirectories >& TemplateFolderCacheImpl::getOfficeInstDirs() { if ( !m_xOfficeInstDirs.is() ) |