diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-18 09:22:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-27 06:48:25 +0000 |
commit | 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch) | |
tree | d1c8626818cbf26a699875ae2d82f751a1657e92 /desktop | |
parent | 9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff) |
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/dp_backenddb.cxx | 4 | ||||
-rw-r--r-- | desktop/source/deployment/registry/help/dp_help.cxx | 4 | ||||
-rw-r--r-- | desktop/source/deployment/registry/inc/dp_backenddb.hxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/deployment/registry/dp_backenddb.cxx b/desktop/source/deployment/registry/dp_backenddb.cxx index 535d9a4ba327..cf3f75b11541 100644 --- a/desktop/source/deployment/registry/dp_backenddb.cxx +++ b/desktop/source/deployment/registry/dp_backenddb.cxx @@ -63,7 +63,7 @@ void BackendDb::save() ucbDb.writeStream(xData, true /*replace existing*/); } -css::uno::Reference<css::xml::dom::XDocument> BackendDb::getDocument() +css::uno::Reference<css::xml::dom::XDocument> const & BackendDb::getDocument() { if (!m_doc.is()) { @@ -106,7 +106,7 @@ css::uno::Reference<css::xml::dom::XDocument> BackendDb::getDocument() return m_doc; } -Reference<css::xml::xpath::XXPathAPI> BackendDb::getXPathAPI() +Reference<css::xml::xpath::XXPathAPI> const & BackendDb::getXPathAPI() { if (!m_xpathApi.is()) { diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 8bed8bb89de0..73e1b43e1dc7 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -106,7 +106,7 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend void revokeEntryFromDb(OUString const & url); bool activateEntry(OUString const & url); - Reference< ucb::XSimpleFileAccess3 > getFileAccess(); + Reference< ucb::XSimpleFileAccess3 > const & getFileAccess(); Reference< ucb::XSimpleFileAccess3 > m_xSFA; const Reference<deployment::XPackageTypeInfo> m_xHelpTypeInfo; @@ -601,7 +601,7 @@ void BackendImpl::implCollectXhpFiles( const OUString& aDir, } } -Reference< ucb::XSimpleFileAccess3 > BackendImpl::getFileAccess() +Reference< ucb::XSimpleFileAccess3 > const & BackendImpl::getFileAccess() { if( !m_xSFA.is() ) { diff --git a/desktop/source/deployment/registry/inc/dp_backenddb.hxx b/desktop/source/deployment/registry/inc/dp_backenddb.hxx index 36b15f82887e..8731cdc3d51e 100644 --- a/desktop/source/deployment/registry/inc/dp_backenddb.hxx +++ b/desktop/source/deployment/registry/inc/dp_backenddb.hxx @@ -58,11 +58,11 @@ protected: /* caller must make sure that only one thread accesses the function */ - css::uno::Reference<css::xml::dom::XDocument> getDocument(); + css::uno::Reference<css::xml::dom::XDocument> const & getDocument(); /* the namespace prefix is "reg" (without quotes) */ - css::uno::Reference<css::xml::xpath::XXPathAPI> getXPathAPI(); + css::uno::Reference<css::xml::xpath::XXPathAPI> const & getXPathAPI(); void save(); void removeElement(OUString const & sXPathExpression); |