diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-09 15:22:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-10 08:07:03 +0200 |
commit | 4c909d1466bf940f653984b61772cf19c320439d (patch) | |
tree | c29129af77615725b3cee5cf5e18796821b426e6 /ucbhelper | |
parent | 91d77d65190e7cf11dd7cd0b29d5de6b66061faf (diff) |
loplugin:passstuffbyref
Change-Id: Ib2b2650da7abc9260897f9b5aad619a0ea6ae941
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138052
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 48d3ee84a9da..8feab846baee 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -164,7 +164,7 @@ friend ContentEventListener_Impl; private: void reinit( const Reference< XContent >& xContent ); void disposing(const EventObject& Source); - Reference< XContent > getContent_NoLock(); + const Reference< XContent > & getContent_NoLock(); const OUString& getURL_NoLock() const; public: @@ -1205,7 +1205,7 @@ Reference< XContent > Content_Impl::getContent() return m_xContent; } -Reference< XContent > Content_Impl::getContent_NoLock() +const Reference< XContent > & Content_Impl::getContent_NoLock() { if ( !m_xContent.is() && !m_aURL.isEmpty() ) { |