diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-04 10:15:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-04 11:55:27 +0200 |
commit | 902d87147d779c84b4ea84ef7779897d89b1fab2 (patch) | |
tree | 3ed603fedf6db10111a3f47202d83c5b223eff65 /sw/inc | |
parent | bca55386e187e2cb4ab277a597a420f15c6cebcf (diff) |
loplugin:constparams in sw part3
Change-Id: I05ad3204af4e6ec3c832b185a1b35fdb75a229b2
Reviewed-on: https://gerrit.libreoffice.org/40760
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/HandleAnchorNodeChg.hxx | 2 | ||||
-rw-r--r-- | sw/inc/authfld.hxx | 2 | ||||
-rw-r--r-- | sw/inc/dbfld.hxx | 8 | ||||
-rw-r--r-- | sw/inc/docufld.hxx | 2 | ||||
-rw-r--r-- | sw/inc/editsh.hxx | 14 | ||||
-rw-r--r-- | sw/inc/fesh.hxx | 4 | ||||
-rw-r--r-- | sw/inc/ndarr.hxx | 2 | ||||
-rw-r--r-- | sw/inc/ndgrf.hxx | 6 |
8 files changed, 20 insertions, 20 deletions
diff --git a/sw/inc/HandleAnchorNodeChg.hxx b/sw/inc/HandleAnchorNodeChg.hxx index 8261c86c16d6..576efa46890f 100644 --- a/sw/inc/HandleAnchorNodeChg.hxx +++ b/sw/inc/HandleAnchorNodeChg.hxx @@ -49,7 +49,7 @@ public: */ SwHandleAnchorNodeChg( SwFlyFrameFormat& _rFlyFrameFormat, const SwFormatAnchor& _rNewAnchorFormat, - SwFlyFrame* _pKeepThisFlyFrame = nullptr ); + SwFlyFrame const * _pKeepThisFlyFrame = nullptr ); /** calls <SwFlyFrameFormat::MakeFrames>, if re-creation of fly frames is necessary. diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx index 2696ef619b26..653e43f96e6a 100644 --- a/sw/inc/authfld.hxx +++ b/sw/inc/authfld.hxx @@ -129,7 +129,7 @@ public: sal_uInt16 GetSortKeyCount() const ; const SwTOXSortKey* GetSortKey(sal_uInt16 nIdx) const ; - void SetSortKeys(sal_uInt16 nKeyCount, SwTOXSortKey nKeys[]); + void SetSortKeys(sal_uInt16 nKeyCount, SwTOXSortKey const nKeys[]); //initui.cxx static OUString GetAuthFieldName(ToxAuthorityField eType); diff --git a/sw/inc/dbfld.hxx b/sw/inc/dbfld.hxx index 62318b162b34..b751fcc76345 100644 --- a/sw/inc/dbfld.hxx +++ b/sw/inc/dbfld.hxx @@ -106,7 +106,7 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override; - static bool FormatValue( SvNumberFormatter* pDocFormatter, OUString &aString, sal_uInt32 nFormat, + static bool FormatValue( SvNumberFormatter* pDocFormatter, OUString const &aString, sal_uInt32 nFormat, double &aNumber, sal_Int32 nColumnType, SwDBField *pField = nullptr ); }; @@ -167,7 +167,7 @@ public: virtual OUString Expand() const override; virtual SwField* Copy() const override; - void Evaluate(SwDoc*); + void Evaluate(SwDoc const *); inline void SetCondValid(bool bCond); inline bool IsCondValid() const; @@ -209,7 +209,7 @@ public: inline bool IsCondValid() const; inline void SetCondValid(bool bCond); - void Evaluate(SwDoc*); + void Evaluate(SwDoc const *); // Condition virtual OUString GetPar1() const override; @@ -271,7 +271,7 @@ public: virtual OUString Expand() const override; virtual SwField* Copy() const override; - void Evaluate(SwDoc*); + void Evaluate(SwDoc const *); inline long GetSetNumber() const; inline void SetSetNumber(long nNum); diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index b1fb68ff9785..19535cfa395f 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -596,7 +596,7 @@ class SwRefPageGetFieldType : public SwFieldType SwDoc* pDoc; sal_Int16 nNumberingType; - void UpdateField( SwTextField* pTextField, SetGetExpFields& rSetList ); + void UpdateField( SwTextField const * pTextField, SetGetExpFields const & rSetList ); protected: /// overwritten to update all RefPageGet fields virtual void Modify( const SfxPoolItem*, const SfxPoolItem * ) override; diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 7e2d8b739427..85ad57b560fa 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -377,7 +377,7 @@ public: /// Verify the paragraph at the cursor. void VerifyParagraph(SwPaM* pPaM); - void Insert2(SwField&, const bool bForceExpandHints); + void Insert2(SwField const &, const bool bForceExpandHints); void UpdateFields( SwField & ); ///< One single field. @@ -388,7 +388,7 @@ public: void RemoveFieldType(size_t nField); void RemoveFieldType(SwFieldIds nResId, const OUString& rName); - void FieldToText( SwFieldType* pType ); + void FieldToText( SwFieldType const * pType ); void ChangeAuthorityData(const SwAuthEntry* pNewData); @@ -399,7 +399,7 @@ public: void ChangeDBFields( const std::vector<OUString>& rOldNames, const OUString& rNewName ); void GetAllUsedDB( std::vector<OUString>& rDBNameList, - std::vector<OUString>* pAllDBNames ); + std::vector<OUString> const * pAllDBNames ); bool IsAnyDatabaseFieldInDoc()const; @@ -430,7 +430,7 @@ public: void Insert(const SwTOXMark& rMark); - void DeleteTOXMark(SwTOXMark* pMark); + void DeleteTOXMark(SwTOXMark const * pMark); /// Get all marks at current SPoint. void GetCurTOXMarks(SwTOXMarks& rMarks) const ; @@ -743,10 +743,10 @@ public: SwDocPositions eCurr, SwConversionArgs *pConvArgs = nullptr ); /// Restore selections. - void SpellEnd( SwConversionArgs *pConvArgs = nullptr, bool bRestoreSelection = true ); + void SpellEnd( SwConversionArgs const *pConvArgs = nullptr, bool bRestoreSelection = true ); css::uno::Any SpellContinue( sal_uInt16* pPageCnt, sal_uInt16* pPageSt, - SwConversionArgs *pConvArgs ); + SwConversionArgs const *pConvArgs ); /** Spells on a sentence basis - the SpellPortions are needed @return false if no error could be found. */ @@ -792,7 +792,7 @@ public: /// Call AutoCorrect void AutoCorrect( SvxAutoCorrect& rACorr, bool bInsertMode, sal_Unicode cChar ); - bool GetPrevAutoCorrWord( SvxAutoCorrect& rACorr, OUString& rWord ); + bool GetPrevAutoCorrWord( SvxAutoCorrect const & rACorr, OUString& rWord ); /// Set our styles according to the respective rules. void AutoFormat( const SvxSwAutoFormatFlags* pAFlags ); diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index cd4b562bd7da..a196e46b7fc0 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -391,7 +391,7 @@ public: bool IsFrameVertical(const bool bEnvironment, bool& bRightToLeft, bool& bVertL2R) const; SwFrameFormat* GetSelectedFrameFormat() const; ///< If frame then frame style, else 0. - void SetFrameFormat( SwFrameFormat *pFormat, bool bKeepOrient = false, Point* pDocPos = nullptr ); ///< If frame then set frame style. + void SetFrameFormat( SwFrameFormat *pFormat, bool bKeepOrient = false, Point const * pDocPos = nullptr ); ///< If frame then set frame style. // Get selected fly SwFlyFrame* GetSelectedFlyFrame() const; @@ -805,7 +805,7 @@ public: const Point& _rDocPos ); void ToggleHeaderFooterEdit( ); - static void SetLineEnds(SfxItemSet& rAttr, SdrObject* pObj, sal_uInt16 nSlotId); + static void SetLineEnds(SfxItemSet& rAttr, SdrObject const * pObj, sal_uInt16 nSlotId); }; void ClearFEShellTabCols(); diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx index a5d8c3f2694e..a2cddd0133bc 100644 --- a/sw/inc/ndarr.hxx +++ b/sw/inc/ndarr.hxx @@ -220,7 +220,7 @@ public: const OUString& rFltName, const Graphic* pGraphic, SwGrfFormatColl *pColl, - SwAttrSet* pAutoAttr = nullptr, + SwAttrSet const * pAutoAttr = nullptr, bool bDelayed = false ); ///< in ndgrf.cxx static SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere, diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx index 60ae5ca36cb4..4676395dfae3 100644 --- a/sw/inc/ndgrf.hxx +++ b/sw/inc/ndgrf.hxx @@ -56,16 +56,16 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode const OUString& rGrfName, const OUString& rFltName, const Graphic* pGraphic, SwGrfFormatColl* pGrfColl, - SwAttrSet* pAutoAttr ); + SwAttrSet const * pAutoAttr ); ///< Ctor for reading (SW/G) without graphics. SwGrfNode( const SwNodeIndex& rWhere, const OUString& rGrfName, const OUString& rFltName, SwGrfFormatColl* pGrfColl, - SwAttrSet* pAutoAttr ); + SwAttrSet const * pAutoAttr ); SwGrfNode( const SwNodeIndex& rWhere, const GraphicObject& rGrfObj, SwGrfFormatColl* pGrfColl, - SwAttrSet* pAutoAttr ); + SwAttrSet const * pAutoAttr ); void InsertLink( const OUString& rGrfName, const OUString& rFltName ); bool ImportGraphic( SvStream& rStrm ); |