diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-04 15:17:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-04 16:06:22 +0200 |
commit | c14f1abc49de68591298437b33b07feeddeb5a5d (patch) | |
tree | 04923fa380f401559d16bbd98c3d484158d1708e /sw/inc/ndhints.hxx | |
parent | fa1be538cdb0f15aff717aa8583c191194609266 (diff) |
loplugin:constparams in sw part4
Change-Id: Ic42b2691869b61ba906222db893e284d8b9c39c1
Reviewed-on: https://gerrit.libreoffice.org/40767
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r-- | sw/inc/ndhints.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx index ec712316751e..6cc69c272c41 100644 --- a/sw/inc/ndhints.hxx +++ b/sw/inc/ndhints.hxx @@ -53,13 +53,13 @@ SwTextAttr * MakeTextAttr( /// create redline dummy text hint that must not be inserted into hints array SwTextAttr* MakeRedlineTextAttr( SwDoc & rDoc, - SfxPoolItem& rAttr ); + SfxPoolItem const & rAttr ); /// SwTextAttr's, sorted by start struct CompareSwpHtStart { - bool operator()(SwTextAttr* const lhs, SwTextAttr* const rhs) const; + bool operator()(SwTextAttr const * const lhs, SwTextAttr const * const rhs) const; }; class SwpHtStart : public o3tl::sorted_vector<SwTextAttr*, CompareSwpHtStart, o3tl::find_partialorder_ptrequals> {}; @@ -67,7 +67,7 @@ class SwpHtStart : public o3tl::sorted_vector<SwTextAttr*, CompareSwpHtStart, /// SwTextAttr's, sorted by end struct CompareSwpHtEnd { - bool operator()(SwTextAttr* const lhs, SwTextAttr* const rhs) const; + bool operator()(SwTextAttr const * const lhs, SwTextAttr const * const rhs) const; }; class SwpHtEnd : public o3tl::sorted_vector<SwTextAttr*, CompareSwpHtEnd, o3tl::find_partialorder_ptrequals> {}; @@ -105,7 +105,7 @@ private: friend class SwTextNode; void DeleteAtPos( size_t nPos ); /// Delete the given Hint. The Hint must actually be in the array! - void Delete( SwTextAttr* pTextHt ); + void Delete( SwTextAttr const * pTextHt ); void SetInSplitNode(bool bInSplit) { m_bInSplitNode = bInSplit; } void SetCalcHiddenParaField() { m_bCalcHiddenParaField = true; } |