summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/fldmgr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 15:33:00 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:40 +0200
commit89fa923a28fb351bb4faad1f69ca94d17f8a5b06 (patch)
tree55472b67e354712f0f8f6fd0b54a248a0f71018d /sw/source/uibase/inc/fldmgr.hxx
parentd1f6f79d0df21c2bb3be9d191233eabf22afb14e (diff)
loplugin:passstuffbyref in sw
Change-Id: I124bdd4f28c7d7508e77b902dfa23c398454bf38
Diffstat (limited to 'sw/source/uibase/inc/fldmgr.hxx')
-rw-r--r--sw/source/uibase/inc/fldmgr.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/inc/fldmgr.hxx b/sw/source/uibase/inc/fldmgr.hxx
index 0d479b19c0e1..ff6ae62304fe 100644
--- a/sw/source/uibase/inc/fldmgr.hxx
+++ b/sw/source/uibase/inc/fldmgr.hxx
@@ -133,8 +133,8 @@ public:
const OUString& rPar2,
SwField * _pField = nullptr);
- OUString GetCurFieldPar1() const { return aCurPar1; }
- OUString GetCurFieldPar2() const { return aCurPar2; }
+ const OUString& GetCurFieldPar1() const { return aCurPar1; }
+ const OUString& GetCurFieldPar2() const { return aCurPar2; }
// determine a field
SwField* GetCurField();
@@ -143,8 +143,8 @@ public:
bool ChooseMacro(const OUString &rSelMacro = OUString());
void SetMacroPath(const OUString& rPath);
- inline OUString GetMacroPath() const { return sMacroPath; }
- inline OUString GetMacroName() const { return sMacroName; }
+ const OUString& GetMacroPath() const { return sMacroPath; }
+ const OUString& GetMacroName() const { return sMacroName; }
// previous and next of the same type
bool GoNextPrev( bool bNext = true, SwFieldType* pTyp = nullptr );