diff options
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); |