From 6a7a0ac6aa50d6f90263c72fcfb42a6451fb841a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Mar 2020 08:46:20 +0200 Subject: Revert "loplugin:constfields in vcl" This reverts commit 59887868da3499c68d5f259cfa48178354397448. Change-Id: I0f3f6a7680c78103a559a0f881badc8211b97ace Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90544 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/edit/textdat2.hxx | 8 ++++---- vcl/source/edit/textund2.hxx | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'vcl/source/edit') diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx index 70396be8435e..b5f2fc1de84f 100644 --- a/vcl/source/edit/textdat2.hxx +++ b/vcl/source/edit/textdat2.hxx @@ -99,9 +99,9 @@ public: struct TEWritingDirectionInfo { - bool const bLeftToRight; - sal_Int32 const nStartPos; - sal_Int32 const nEndPos; + bool bLeftToRight; + sal_Int32 nStartPos; + sal_Int32 nEndPos; TEWritingDirectionInfo( bool LeftToRight, sal_Int32 Start, sal_Int32 End ) : bLeftToRight {LeftToRight} , nStartPos {Start} @@ -170,7 +170,7 @@ inline bool TextLine::operator == ( const TextLine& rLine ) const class TEParaPortion { private: - TextNode* const mpNode; + TextNode* mpNode; std::vector maLines; TETextPortionList maTextPortions; diff --git a/vcl/source/edit/textund2.hxx b/vcl/source/edit/textund2.hxx index 299ae7161e11..729a130ad456 100644 --- a/vcl/source/edit/textund2.hxx +++ b/vcl/source/edit/textund2.hxx @@ -26,7 +26,7 @@ class TextUndoDelPara : public TextUndo { private: bool mbDelObject; - sal_uInt32 const mnPara; + sal_uInt32 mnPara; TextNode* mpNode; // points at the valid not-destroyed object public: @@ -42,8 +42,8 @@ public: class TextUndoConnectParas : public TextUndo { private: - sal_uInt32 const mnPara; - sal_Int32 const mnSepPos; + sal_uInt32 mnPara; + sal_Int32 mnSepPos; public: TextUndoConnectParas( TextEngine* pTextEngine, sal_uInt32 nPara, sal_Int32 nSepPos ); @@ -58,8 +58,8 @@ public: class TextUndoSplitPara : public TextUndo { private: - sal_uInt32 const mnPara; - sal_Int32 const mnSepPos; + sal_uInt32 mnPara; + sal_Int32 mnSepPos; public: TextUndoSplitPara( TextEngine* pTextEngine, sal_uInt32 nPara, sal_Int32 nSepPos ); @@ -91,8 +91,8 @@ public: class TextUndoRemoveChars : public TextUndo { private: - TextPaM const maTextPaM; - OUString const maText; + TextPaM maTextPaM; + OUString maText; public: TextUndoRemoveChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, const OUString& rStr ); -- cgit