diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-31 21:34:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-02 12:19:10 +0100 |
commit | 4855257e52056241633c2b1d8159c3f0e71e05f3 (patch) | |
tree | 4a56a5ead5cacdf70ed7fb31bf8a949aba774030 /sw/inc/section.hxx | |
parent | 884cbe174ee5e343e9ed56093421aad3e467bf57 (diff) |
loplugin:passstuffbyref improved return in sw
Change-Id: I4484ac461761e4c46364b4f473c7e62f8ec72103
Reviewed-on: https://gerrit.libreoffice.org/47243
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/section.hxx')
-rw-r--r-- | sw/inc/section.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx index 7eeadf7c0ebd..30b582b89a80 100644 --- a/sw/inc/section.hxx +++ b/sw/inc/section.hxx @@ -196,13 +196,13 @@ public: inline SwSection* GetParent() const; - OUString GetCondition() const { return m_Data.GetCondition(); } + OUString const & GetCondition() const { return m_Data.GetCondition(); } void SetCondition(OUString const& rNew) { m_Data.SetCondition(rNew); } - OUString GetLinkFileName() const; + OUString const & GetLinkFileName() const; void SetLinkFileName(OUString const& rNew); // Password of linked file (only valid during runtime!) - OUString GetLinkFilePassword() const + OUString const & GetLinkFilePassword() const { return m_Data.GetLinkFilePassword(); } void SetLinkFilePassword(OUString const& rS) { m_Data.SetLinkFilePassword(rS); } |