diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-23 12:22:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-24 07:56:57 +0100 |
commit | 945a119675788f7c8f0a133ac0271f9340c1653a (patch) | |
tree | 36b8ec346d009628b22922e510ba19fd2ece4f58 /sw | |
parent | 7b7c388fe402e14486664e36eeb6c1f0fe1e02b9 (diff) |
loplugin:constparams
Change-Id: I7c695073d9a9d3b7a641d6eb9fe01a47d8c3a504
Reviewed-on: https://gerrit.libreoffice.org/48392
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/html/swhtml.hxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index 4d939b4cba8d..4115bb6f9e6b 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -3224,7 +3224,7 @@ void SwHTMLParser::DeleteAttr( HTMLAttr* pAttr ) *ppHead = pNext; } -void SwHTMLParser::SaveAttrTab(std::shared_ptr<HTMLAttrTable>& rNewAttrTab) +void SwHTMLParser::SaveAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab) { // preliminary paragraph attributes are not allowed here, they could // be set here and then the pointers become invalid! @@ -3251,7 +3251,7 @@ void SwHTMLParser::SaveAttrTab(std::shared_ptr<HTMLAttrTable>& rNewAttrTab) } } -void SwHTMLParser::SplitAttrTab( std::shared_ptr<HTMLAttrTable>& rNewAttrTab, +void SwHTMLParser::SplitAttrTab( std::shared_ptr<HTMLAttrTable> const & rNewAttrTab, bool bMoveEndBack ) { // preliminary paragraph attributes are not allowed here, they could @@ -3352,7 +3352,7 @@ void SwHTMLParser::SplitAttrTab( std::shared_ptr<HTMLAttrTable>& rNewAttrTab, } } -void SwHTMLParser::RestoreAttrTab(std::shared_ptr<HTMLAttrTable>& rNewAttrTab) +void SwHTMLParser::RestoreAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab) { // preliminary paragraph attributes are not allowed here, they could // be set here and then the pointers become invalid! diff --git a/sw/source/filter/html/swhtml.hxx b/sw/source/filter/html/swhtml.hxx index 9674a8892eaf..e61ff697bc41 100644 --- a/sw/source/filter/html/swhtml.hxx +++ b/sw/source/filter/html/swhtml.hxx @@ -535,10 +535,10 @@ class SwHTMLParser : public SfxHTMLParser, public SwClient void DeleteAttr( HTMLAttr* pAttr ); void EndContextAttrs( HTMLAttrContext *pContext ); - void SaveAttrTab(std::shared_ptr<HTMLAttrTable>& rNewAttrTab); + void SaveAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab); void SplitAttrTab( const SwPosition& rNewPos ); - void SplitAttrTab(std::shared_ptr<HTMLAttrTable>& rNewAttrTab, bool bMoveEndBack); - void RestoreAttrTab(std::shared_ptr<HTMLAttrTable>& rNewAttrTab); + void SplitAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab, bool bMoveEndBack); + void RestoreAttrTab(std::shared_ptr<HTMLAttrTable> const & rNewAttrTab); void InsertAttr( const SfxPoolItem& rItem, bool bInsAtStart ); void InsertAttrs( HTMLAttrs& rAttrs ); |