diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-28 13:48:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-29 08:00:29 +0100 |
commit | 31f71635a136daf36d554e0c20db9ae0d1686c23 (patch) | |
tree | ba4150e1c999a15362faa18863a4a5105bd5a8d7 /ucb/source | |
parent | 38f5e768b0f858f8f990a8f297396821c75d45dc (diff) |
loplugin:passstuffbyref improved return in ucb,connectivity
Change-Id: Ib2590648c9dced87693a58a506cb62d04e37b18d
Reviewed-on: https://gerrit.libreoffice.org/47149
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.cxx | 2 | ||||
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.hxx | 2 | ||||
-rw-r--r-- | ucb/source/core/providermap.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.hxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index 73f0c5a8b256..54c1d112ea2e 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -289,7 +289,7 @@ const Any& CachedContentResultSet::CCRS_Cache return (*rRow)[nColumnIndex-1]; } -OUString CachedContentResultSet::CCRS_Cache +OUString const & CachedContentResultSet::CCRS_Cache ::getContentIdentifierString( sal_Int32 nRow ) { try diff --git a/ucb/source/cacher/cachedcontentresultset.hxx b/ucb/source/cacher/cachedcontentresultset.hxx index bdd8837362e7..51e73b1317bd 100644 --- a/ucb/source/cacher/cachedcontentresultset.hxx +++ b/ucb/source/cacher/cachedcontentresultset.hxx @@ -98,7 +98,7 @@ class CachedContentResultSet getAny( sal_Int32 nRow, sal_Int32 nColumnIndex ); /// @throws css::uno::RuntimeException - OUString + OUString const & getContentIdentifierString( sal_Int32 nRow ); /// @throws css::uno::RuntimeException diff --git a/ucb/source/core/providermap.hxx b/ucb/source/core/providermap.hxx index c1b50e058820..1a253f405f3a 100644 --- a/ucb/source/core/providermap.hxx +++ b/ucb/source/core/providermap.hxx @@ -46,10 +46,10 @@ public: const css::uno::Reference< css::ucb::XContentProvider >& getProvider() const { return m_xProvider; } - inline css::uno::Reference< css::ucb::XContentProvider > getResolvedProvider() const; + inline css::uno::Reference< css::ucb::XContentProvider > const & getResolvedProvider() const; }; -inline css::uno::Reference< css::ucb::XContentProvider > +inline css::uno::Reference< css::ucb::XContentProvider > const & ProviderListEntry_Impl::getResolvedProvider() const { return m_xResolvedProvider.is() ? m_xResolvedProvider : resolveProvider(); diff --git a/ucb/source/ucp/webdav-neon/NeonSession.hxx b/ucb/source/ucp/webdav-neon/NeonSession.hxx index 28b23678326c..ec080f1f0473 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.hxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.hxx @@ -197,7 +197,7 @@ public: const OUString & getHostName() const { return m_aHostName; } - const ::uno::Reference< ::uno::XComponentContext > getComponentContext() + ::uno::Reference< ::uno::XComponentContext > const & getComponentContext() { return m_xFactory->getComponentContext(); } const void * getRequestData() const { return m_pRequestData; } |