summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-13 15:46:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-13 15:41:42 +0100
commit17e712ccc8fa93d57672916e3c8adaa8febc9f8c (patch)
treed62b91c405110bed4b90e93f8cf8237697dceec8 /sw/source/core/txtnode
parent37dc48300cc39e98c398737453e72836618ca2ac (diff)
Revert "loplugin:constfields in sw"
This reverts commit 4969f4c0d3e2581aaa8a5b5a5769840fa6b6f8ea. Change-Id: I527e9366b05e8a20633720e334395b285991c524 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx6
-rw-r--r--sw/source/core/txtnode/modeltoviewhelper.cxx8
2 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 55968e13fdd9..d105736ad5ff 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -248,12 +248,12 @@ struct CalcLinePosData
{
SwDrawTextInfo& rInf;
vcl::Font& rFont;
- TextFrameIndex const nCnt;
+ TextFrameIndex nCnt;
const bool bSwitchH2V;
const bool bSwitchH2VLRBT;
const bool bSwitchL2R;
- long const nHalfSpace;
- long* const pKernArray;
+ long nHalfSpace;
+ long* pKernArray;
const bool bBidiPor;
CalcLinePosData( SwDrawTextInfo& _rInf, vcl::Font& _rFont,
diff --git a/sw/source/core/txtnode/modeltoviewhelper.cxx b/sw/source/core/txtnode/modeltoviewhelper.cxx
index f7be7f8a98bb..4675a632a065 100644
--- a/sw/source/core/txtnode/modeltoviewhelper.cxx
+++ b/sw/source/core/txtnode/modeltoviewhelper.cxx
@@ -38,7 +38,7 @@ namespace {
struct FieldResult
{
- sal_Int32 const m_nFieldPos;
+ sal_Int32 m_nFieldPos;
OUString m_sExpand;
enum { NONE, FIELD, FOOTNOTE } m_eType;
explicit FieldResult(sal_Int32 const nPos)
@@ -63,9 +63,9 @@ namespace {
struct block
{
- sal_Int32 const m_nStart;
- sal_Int32 const m_nLen;
- bool const m_bVisible;
+ sal_Int32 m_nStart;
+ sal_Int32 m_nLen;
+ bool m_bVisible;
FieldResultSet m_aAttrs;
block(sal_Int32 nStart, sal_Int32 nLen, bool bVisible)
: m_nStart(nStart), m_nLen(nLen), m_bVisible(bVisible)