diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 09:08:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 10:43:50 +0100 |
commit | d010dd58e8afd7e135c7479dcabd6986eadb664f (patch) | |
tree | 7cace5b4bead0d676f0bc569e32f6902ecdf7f94 /vcl/source/edit | |
parent | 8f7c35072a6bbb33f6582c8c9a37a275c8d3cb14 (diff) |
loplugin:constparams in vcl
Change-Id: Icf1a952fbe190fd6c4efd89364136aa2b48050e3
Reviewed-on: https://gerrit.libreoffice.org/66767
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/textdoc.cxx | 2 | ||||
-rw-r--r-- | vcl/source/edit/textdoc.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx index b8908f0ee6c7..bca776388ee0 100644 --- a/vcl/source/edit/textdoc.cxx +++ b/vcl/source/edit/textdoc.cxx @@ -495,7 +495,7 @@ TextPaM TextDoc::InsertParaBreak( const TextPaM& rPaM ) return aPaM; } -TextPaM TextDoc::ConnectParagraphs( TextNode* pLeft, TextNode* pRight ) +TextPaM TextDoc::ConnectParagraphs( TextNode* pLeft, const TextNode* pRight ) { sal_Int32 nPrevLen = pLeft->GetText().getLength(); pLeft->Append( *pRight ); diff --git a/vcl/source/edit/textdoc.hxx b/vcl/source/edit/textdoc.hxx index 0130a2377f43..4bd67fc5e25d 100644 --- a/vcl/source/edit/textdoc.hxx +++ b/vcl/source/edit/textdoc.hxx @@ -112,7 +112,7 @@ public: TextPaM InsertText( const TextPaM& rPaM, const OUString& rStr ); TextPaM InsertParaBreak( const TextPaM& rPaM ); - TextPaM ConnectParagraphs( TextNode* pLeft, TextNode* pRight ); + TextPaM ConnectParagraphs( TextNode* pLeft, const TextNode* pRight ); sal_Int32 GetTextLen( const sal_Unicode* pSep, const TextSelection* pSel = nullptr ) const; OUString GetText( const sal_Unicode* pSep ) const; |