summaryrefslogtreecommitdiff
path: root/vcl/source/edit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-16 08:46:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-16 09:38:24 +0100
commit6a7a0ac6aa50d6f90263c72fcfb42a6451fb841a (patch)
tree9a91e8e70d00fbc6ed2e8e975358931638f57aac /vcl/source/edit
parent3621c927b4555cb437fb89d28473228cb5d8e11a (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r--vcl/source/edit/textdat2.hxx8
-rw-r--r--vcl/source/edit/textund2.hxx14
2 files changed, 11 insertions, 11 deletions
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<TextLine> 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 );