From 945a119675788f7c8f0a133ac0271f9340c1653a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Jan 2018 12:22:26 +0200 Subject: loplugin:constparams Change-Id: I7c695073d9a9d3b7a641d6eb9fe01a47d8c3a504 Reviewed-on: https://gerrit.libreoffice.org/48392 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sw/source/filter/html/swhtml.cxx | 6 +++--- sw/source/filter/html/swhtml.hxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sw/source') 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& rNewAttrTab) +void SwHTMLParser::SaveAttrTab(std::shared_ptr 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& rNewAttrTab) } } -void SwHTMLParser::SplitAttrTab( std::shared_ptr& rNewAttrTab, +void SwHTMLParser::SplitAttrTab( std::shared_ptr const & rNewAttrTab, bool bMoveEndBack ) { // preliminary paragraph attributes are not allowed here, they could @@ -3352,7 +3352,7 @@ void SwHTMLParser::SplitAttrTab( std::shared_ptr& rNewAttrTab, } } -void SwHTMLParser::RestoreAttrTab(std::shared_ptr& rNewAttrTab) +void SwHTMLParser::RestoreAttrTab(std::shared_ptr 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& rNewAttrTab); + void SaveAttrTab(std::shared_ptr const & rNewAttrTab); void SplitAttrTab( const SwPosition& rNewPos ); - void SplitAttrTab(std::shared_ptr& rNewAttrTab, bool bMoveEndBack); - void RestoreAttrTab(std::shared_ptr& rNewAttrTab); + void SplitAttrTab(std::shared_ptr const & rNewAttrTab, bool bMoveEndBack); + void RestoreAttrTab(std::shared_ptr const & rNewAttrTab); void InsertAttr( const SfxPoolItem& rItem, bool bInsAtStart ); void InsertAttrs( HTMLAttrs& rAttrs ); -- cgit v1.2.3