diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 15:33:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 09:21:40 +0200 |
commit | 89fa923a28fb351bb4faad1f69ca94d17f8a5b06 (patch) | |
tree | 55472b67e354712f0f8f6fd0b54a248a0f71018d /sw/inc/expfld.hxx | |
parent | d1f6f79d0df21c2bb3be9d191233eabf22afb14e (diff) |
loplugin:passstuffbyref in sw
Change-Id: I124bdd4f28c7d7508e77b902dfa23c398454bf38
Diffstat (limited to 'sw/inc/expfld.hxx')
-rw-r--r-- | sw/inc/expfld.hxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx index c51f1bddf163..99c9c6e612a3 100644 --- a/sw/inc/expfld.hxx +++ b/sw/inc/expfld.hxx @@ -100,7 +100,7 @@ public: virtual void SetValue( const double& rVal ) override; virtual void SetLanguage(sal_uInt16 nLng) override; - inline OUString GetExpStr() const; + inline const OUString& GetExpStr() const; inline void ChgExpStr(const OUString& rExpand); /// Called by formatting. @@ -132,7 +132,7 @@ public: inline void SwGetExpField::ChgExpStr(const OUString& rExpand) { sExpand = rExpand;} -inline OUString SwGetExpField::GetExpStr() const +inline const OUString& SwGetExpField::GetExpStr() const { return sExpand; } /// Called by formatting. @@ -173,16 +173,16 @@ public: void SetDeleted( bool b ) { bDeleted = b; } /// Overlay, because set-field takes care for its being updated by itself. - inline OUString GetSetRefName() const; + inline const OUString& GetSetRefName() const; void SetSeqRefNo( SwSetExpField& rField ); size_t GetSeqFieldList( SwSeqFieldList& rList ); /// Number sequence fields chapterwise if required. - OUString GetDelimiter() const { return sDelim; } + const OUString& GetDelimiter() const { return sDelim; } void SetDelimiter( const OUString& s ) { sDelim = s; } - sal_uInt8 GetOutlineLvl() const { return nLevel; } + sal_uInt8 GetOutlineLvl() const { return nLevel; } void SetOutlineLvl( sal_uInt8 n ) { nLevel = n; } void SetChapter( SwSetExpField& rField, const SwNode& rNd ); @@ -204,7 +204,7 @@ inline void SwSetExpFieldType::SetType( sal_uInt16 nTyp ) inline sal_uInt16 SwSetExpFieldType::GetType() const { return nType; } -inline OUString SwSetExpFieldType::GetSetRefName() const +inline const OUString& SwSetExpFieldType::GetSetRefName() const { return sName; } class SW_DLLPUBLIC SwSetExpField : public SwFormulaField @@ -227,12 +227,12 @@ public: virtual void SetValue( const double& rVal ) override; - inline OUString GetExpStr() const; + inline const OUString& GetExpStr() const; inline void ChgExpStr( const OUString& rExpand ); inline void SetPromptText(const OUString& rStr); - inline OUString GetPromptText() const; + inline const OUString& GetPromptText() const; inline void SetInputFlag(bool bInp); inline bool GetInputFlag() const; @@ -258,7 +258,7 @@ public: virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; }; -inline OUString SwSetExpField::GetExpStr() const +inline const OUString& SwSetExpField::GetExpStr() const { return sExpand; } inline void SwSetExpField::ChgExpStr( const OUString& rExpand ) @@ -267,7 +267,7 @@ inline void SwSetExpField::ChgExpStr( const OUString& rExpand ) inline void SwSetExpField::SetPromptText(const OUString& rStr) { aPText = rStr; } -inline OUString SwSetExpField::GetPromptText() const +inline const OUString& SwSetExpField::GetPromptText() const { return aPText; } inline void SwSetExpField::SetInputFlag(bool bInp) @@ -340,11 +340,11 @@ public: virtual OUString GetPar2() const override; virtual void SetPar2(const OUString& rStr) override; - OUString GetHelp() const; - void SetHelp(const OUString & rStr); + const OUString& GetHelp() const; + void SetHelp(const OUString & rStr); - OUString GetToolTip() const; - void SetToolTip(const OUString & rStr); + const OUString& GetToolTip() const; + void SetToolTip(const OUString & rStr); virtual sal_uInt16 GetSubType() const override; virtual void SetSubType(sal_uInt16 nSub) override; @@ -403,10 +403,10 @@ public: sal_uInt16 nSubType = 0, sal_uLong nFormat = 0); virtual void SetValue( const double& rVal ) override; - virtual sal_uInt16 GetSubType() const override; + virtual sal_uInt16 GetSubType() const override; virtual void SetSubType(sal_uInt16 nType) override; - OUString GetExpStr() const { return sExpand; } + const OUString& GetExpStr() const { return sExpand; } void ChgExpStr(const OUString& rStr) { sExpand = rStr; } void CalcField( SwTableCalcPara& rCalcPara ); |