summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:32:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 20:10:57 +0200
commit31f04378dbc07d4367dc3b66163aaed171cf0323 (patch)
tree803e8caa6fa9cecdab5e1a0047fbd334fd2ab1ee /sw/inc
parent2836b78b54650d117282a9a345677d1b4d9fc043 (diff)
loplugin:passstuffbyref
Change-Id: Icb7c22cf4ac95eab54d04e79312fb471ca27bceb Reviewed-on: https://gerrit.libreoffice.org/74246 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/authfld.hxx2
-rw-r--r--sw/inc/viewsh.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx
index 9a9ba06c13c1..171febb19bed 100644
--- a/sw/inc/authfld.hxx
+++ b/sw/inc/authfld.hxx
@@ -165,7 +165,7 @@ public:
SwAuthorityField(SwAuthorityFieldType* pType, SwAuthEntry* pAuthEntry);
virtual ~SwAuthorityField() override;
- OUString GetFieldText(ToxAuthorityField eField) const;
+ const OUString & GetFieldText(ToxAuthorityField eField) const;
virtual void SetPar1(const OUString& rStr) override;
virtual SwFieldType* ChgTyp( SwFieldType* ) override;
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 641cbdfba6fb..4120288ca268 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -252,7 +252,7 @@ public:
const SwRect& VisArea() const;
/// The visible area in the client (set by setClientVisibleArea).
- const tools::Rectangle getLOKVisibleArea() const { return maLOKVisibleArea; }
+ const tools::Rectangle & getLOKVisibleArea() const { return maLOKVisibleArea; }
void setLOKVisibleArea(const tools::Rectangle& rArea) { maLOKVisibleArea = rArea; }
// If necessary scroll until passed Rect is situated in visible sector.