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 | |
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')
-rw-r--r-- | sw/inc/EnhancedPDFExportHelper.hxx | 2 | ||||
-rw-r--r-- | sw/inc/ndarr.hxx | 2 | ||||
-rw-r--r-- | sw/inc/ndhints.hxx | 8 | ||||
-rw-r--r-- | sw/inc/ndole.hxx | 4 | ||||
-rw-r--r-- | sw/inc/shellio.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swtable.hxx | 2 | ||||
-rw-r--r-- | sw/inc/tox.hxx | 4 | ||||
-rw-r--r-- | sw/inc/txtatr.hxx | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/sw/inc/EnhancedPDFExportHelper.hxx b/sw/inc/EnhancedPDFExportHelper.hxx index c9804130acd5..c7c61ba39618 100644 --- a/sw/inc/EnhancedPDFExportHelper.hxx +++ b/sw/inc/EnhancedPDFExportHelper.hxx @@ -165,7 +165,7 @@ class SwTaggedPDFHelper // pPorInfo != 0 => BeginInlineStructureElement // pFrameInfo, pPorInfo = 0 => BeginNonStructureElement SwTaggedPDFHelper( const Num_Info* pNumInfo, const Frame_Info* pFrameInfo, const Por_Info* pPorInfo, - OutputDevice& rOut ); + OutputDevice const & rOut ); ~SwTaggedPDFHelper(); static bool IsExportTaggedPDF( const OutputDevice& rOut ); diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx index a2cddd0133bc..fbc56be1e810 100644 --- a/sw/inc/ndarr.hxx +++ b/sw/inc/ndarr.hxx @@ -234,7 +234,7 @@ public: const OUString &rName, sal_Int64 nAspect, SwGrfFormatColl *pColl, - SwAttrSet* pAutoAttr ); ///< in ndole.cxx + SwAttrSet const * pAutoAttr ); ///< in ndole.cxx /// Array of all OutlineNodes. const SwOutlineNodes& GetOutLineNds() const { return *m_pOutlineNodes;} 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; } diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx index 86e0798a5697..bdab642ebb70 100644 --- a/sw/inc/ndole.hxx +++ b/sw/inc/ndole.hxx @@ -93,13 +93,13 @@ class SW_DLLPUBLIC SwOLENode: public SwNoTextNode SwOLENode( const SwNodeIndex &rWhere, const svt::EmbeddedObjectRef&, SwGrfFormatColl *pGrfColl, - SwAttrSet* pAutoAttr ); + SwAttrSet const * pAutoAttr ); SwOLENode( const SwNodeIndex &rWhere, const OUString &rName, sal_Int64 nAspect, SwGrfFormatColl *pGrfColl, - SwAttrSet* pAutoAttr ); + SwAttrSet const * pAutoAttr ); SwOLENode( const SwOLENode & ) = delete; diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx index 22791a14acf2..bbace938d039 100644 --- a/sw/inc/shellio.hxx +++ b/sw/inc/shellio.hxx @@ -315,7 +315,7 @@ public: bool Delete( sal_uInt16 ); void Rename( sal_uInt16, const OUString*, const OUString* ); - ErrCode CopyBlock( SwTextBlocks& rSource, OUString& rSrcShort, + ErrCode CopyBlock( SwTextBlocks const & rSource, OUString& rSrcShort, const OUString& rLong ); bool BeginGetDoc( sal_uInt16 ); // Read text modules. diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index 15d20cb08fd2..4248066dacea 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -392,7 +392,7 @@ public: class SW_DLLPUBLIC SwTableBox: public SwClient //Client of FrameFormat. { friend class SwNodes; // Transpose index. - friend void DelBoxNode(SwTableSortBoxes&); // Delete StartNode* ! + friend void DelBoxNode(SwTableSortBoxes const &); // Delete StartNode* ! friend class SwXMLTableContext; SwTableBox( const SwTableBox & ) = delete; diff --git a/sw/inc/tox.hxx b/sw/inc/tox.hxx index a3b5ed2c7484..d91332684792 100644 --- a/sw/inc/tox.hxx +++ b/sw/inc/tox.hxx @@ -301,7 +301,7 @@ public: const SwFormTokens& GetPattern(sal_uInt16 nLevel) const; // fill tab stop positions from template to pattern- #i21237# - void AdjustTabStops( SwDoc& rDoc ); + void AdjustTabStops( SwDoc const & rDoc ); inline TOXTypes GetTOXType() const; inline sal_uInt16 GetFormMax() const; @@ -521,7 +521,7 @@ public: const OUString& GetSortAlgorithm()const {return m_sSortAlgorithm;} void SetSortAlgorithm(const OUString& rSet) {m_sSortAlgorithm = rSet;} // #i21237# - void AdjustTabStops( SwDoc & rDoc ) + void AdjustTabStops( SwDoc const & rDoc ) { m_aForm.AdjustTabStops( rDoc ); } diff --git a/sw/inc/txtatr.hxx b/sw/inc/txtatr.hxx index ddb3f1b94eda..ebd11b1cdfde 100644 --- a/sw/inc/txtatr.hxx +++ b/sw/inc/txtatr.hxx @@ -40,7 +40,7 @@ public: // Passed from SwFormatCharFormat (no derivation from SwClient!). void ModifyNotification( const SfxPoolItem*, const SfxPoolItem* ); - bool GetInfo( SfxPoolItem& rInfo ) const; + bool GetInfo( SfxPoolItem const & rInfo ) const; // get and set TextNode pointer void ChgTextNode( SwTextNode* pNew ) { m_pTextNode = pNew; } |