summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-29 14:15:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-29 18:19:37 +0100
commit4b030651a0ad5e0eedd6d08b6cd1459ca514d818 (patch)
tree5a02580a42d8593c3afc9f39816128562a9cfc6b /embeddedobj
parentd460842616d467dfaf7b51ac2db94adb1ff5cbb0 (diff)
loplugin:passstuffbyref improved return in various
Change-Id: I0a8282d8e0d9575b055243073fc89a7d6b67b560 Reviewed-on: https://gerrit.libreoffice.org/47173 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/inc/commonembobj.hxx2
-rw-r--r--embeddedobj/source/inc/docholder.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/embeddedobj/source/inc/commonembobj.hxx b/embeddedobj/source/inc/commonembobj.hxx
index 5e857b0a3331..0ae22154959e 100644
--- a/embeddedobj/source/inc/commonembobj.hxx
+++ b/embeddedobj/source/inc/commonembobj.hxx
@@ -248,7 +248,7 @@ public:
// not a real listener and should not be
void PostEvent_Impl( const OUString& aEventName );
- OUString getContainerName() { return m_aContainerName; }
+ OUString const & getContainerName() { return m_aContainerName; }
// XInterface
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override ;
diff --git a/embeddedobj/source/inc/docholder.hxx b/embeddedobj/source/inc/docholder.hxx
index 410b9f73161e..974a762a995a 100644
--- a/embeddedobj/source/inc/docholder.hxx
+++ b/embeddedobj/source/inc/docholder.hxx
@@ -131,7 +131,7 @@ public:
return m_aContainerName + ( m_aDocumentNamePart.isEmpty() ? OUString() : ( " - " + m_aDocumentNamePart ) );
}
- OUString GetContainerName() const
+ OUString const & GetContainerName() const
{
return m_aContainerName;
}