summaryrefslogtreecommitdiff
path: root/sw/source/filter/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-01 09:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 11:56:43 +0200
commit4969f4c0d3e2581aaa8a5b5a5769840fa6b6f8ea (patch)
treeeb42ab5be5d8c5ca3d23b686a8781c28822381b4 /sw/source/filter/inc
parentd5cc52fec12e3c8d1c3561f172d3e1c5434290b3 (diff)
loplugin:constfields in sw
Change-Id: I1eb6583bb9ec815bc0564b0d7c676f5b1fb9045f Reviewed-on: https://gerrit.libreoffice.org/61177 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/inc')
-rw-r--r--sw/source/filter/inc/fltshell.hxx24
-rw-r--r--sw/source/filter/inc/msfilter.hxx2
-rw-r--r--sw/source/filter/inc/wrtswtbl.hxx30
3 files changed, 28 insertions, 28 deletions
diff --git a/sw/source/filter/inc/fltshell.hxx b/sw/source/filter/inc/fltshell.hxx
index 032ccbe00d81..7007a5ec1454 100644
--- a/sw/source/filter/inc/fltshell.hxx
+++ b/sw/source/filter/inc/fltshell.hxx
@@ -127,7 +127,7 @@ private:
typedef std::vector<std::unique_ptr<SwFltStackEntry>> Entries;
Entries m_Entries;
- sal_uLong nFieldFlags;
+ sal_uLong const nFieldFlags;
bool bHasSdOD;
bool bSdODChecked;
@@ -215,12 +215,12 @@ public:
class SW_DLLPUBLIC SwFltRedline : public SfxPoolItem
{
public:
- DateTime aStamp;
- DateTime aStampPrev;
- RedlineType_t eType;
- RedlineType_t eTypePrev;
- std::size_t nAutorNo;
- std::size_t nAutorNoPrev;
+ DateTime const aStamp;
+ DateTime const aStampPrev;
+ RedlineType_t const eType;
+ RedlineType_t const eTypePrev;
+ std::size_t const nAutorNo;
+ std::size_t const nAutorNoPrev;
static constexpr auto NoPrevAuthor
= std::numeric_limits<std::size_t>::max();
@@ -246,10 +246,10 @@ class SW_DLLPUBLIC SwFltBookmark : public SfxPoolItem
{
private:
- long mnHandle;
+ long const mnHandle;
OUString maName;
- OUString maVal;
- bool mbIsTOCBookmark;
+ OUString const maVal;
+ bool const mbIsTOCBookmark;
public:
SwFltBookmark( const OUString& rNa,
@@ -290,7 +290,7 @@ public:
class SW_DLLPUBLIC SwFltTOX : public SfxPoolItem
{
- SwTOXBase* pTOXBase;
+ SwTOXBase* const pTOXBase;
bool bHadBreakItem; // there was a break item BEFORE insertion of the TOX
bool bHadPageDescItem;
public:
@@ -323,7 +323,7 @@ SW_DLLPUBLIC void UpdatePageDescs(SwDoc &rDoc, size_t nInPageDescOffset);
class ImportProgress
{
private:
- SwDocShell *m_pDocShell;
+ SwDocShell * const m_pDocShell;
public:
ImportProgress(SwDocShell *pDocShell, long nStartVal, long nEndVal)
: m_pDocShell(pDocShell)
diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx
index 4babe2e56c95..8a79ae919c3f 100644
--- a/sw/source/filter/inc/msfilter.hxx
+++ b/sw/source/filter/inc/msfilter.hxx
@@ -285,7 +285,7 @@ namespace sw
void InsertTable(SwTableNode &rTableNode, SwPaM &rPaM);
explicit InsertedTablesManager(const SwDoc &rDoc);
private:
- bool mbHasRoot;
+ bool const mbHasRoot;
TableMap maTables;
};
diff --git a/sw/source/filter/inc/wrtswtbl.hxx b/sw/source/filter/inc/wrtswtbl.hxx
index 7c61ba07de8c..c19b6b929e90 100644
--- a/sw/source/filter/inc/wrtswtbl.hxx
+++ b/sw/source/filter/inc/wrtswtbl.hxx
@@ -48,15 +48,15 @@ class SW_DLLPUBLIC SwWriteTableCell
const SwTableBox *pBox; // SwTableBox of the cell
const SvxBrushItem *pBackground; // inherited background of a row
- long nHeight; // fix/minimum height of a row
+ long const nHeight; // fix/minimum height of a row
sal_uInt32 nWidthOpt; // width from option;
- sal_uInt16 nRow; // start row
- sal_uInt16 nCol; // start column
+ sal_uInt16 const nRow; // start row
+ sal_uInt16 const nCol; // start column
- sal_uInt16 nRowSpan; // spanned rows
- sal_uInt16 nColSpan; // spanned columns
+ sal_uInt16 const nRowSpan; // spanned rows
+ sal_uInt16 const nColSpan; // spanned columns
bool bPrcWidthOpt;
@@ -98,8 +98,8 @@ class SW_DLLPUBLIC SwWriteTableRow final
SwWriteTableCells m_Cells; ///< all cells of the rows
const SvxBrushItem *pBackground; // background
- long nPos; // end position (twips) of the row
- bool mbUseLayoutHeights;
+ long const nPos; // end position (twips) of the row
+ bool const mbUseLayoutHeights;
SwWriteTableRow & operator= (const SwWriteTableRow &) = delete;
@@ -156,7 +156,7 @@ using SwWriteTableRows
class SW_DLLPUBLIC SwWriteTableCol
{
- sal_uInt32 nPos; // end position of the column
+ sal_uInt32 const nPos; // end position of the column
sal_uInt32 nWidthOpt;
@@ -227,24 +227,24 @@ protected:
sal_uInt16 m_nBorder; // thickness of the outer border
sal_uInt16 m_nInnerBorder; // thickness of the inner border
- sal_uInt32 m_nBaseWidth; // reference value for SwFormatFrameSize width
+ sal_uInt32 const m_nBaseWidth; // reference value for SwFormatFrameSize width
sal_uInt16 m_nHeadEndRow; // last row of the table heading
- sal_uInt16 m_nLeftSub;
- sal_uInt16 m_nRightSub;
+ sal_uInt16 const m_nLeftSub;
+ sal_uInt16 const m_nRightSub;
sal_uInt32 m_nTabWidth; // absolute/relative width of the table
- bool m_bRelWidths : 1; // generate relative widths?
+ bool const m_bRelWidths : 1; // generate relative widths?
bool m_bUseLayoutHeights : 1; // use layout to determine the height?
#ifdef DBG_UTIL
bool m_bGetLineHeightCalled : 1;
#endif
- bool m_bColTags : 1;
- bool m_bLayoutExport : 1;
- bool m_bCollectBorderWidth : 1;
+ bool const m_bColTags : 1;
+ bool const m_bLayoutExport : 1;
+ bool const m_bCollectBorderWidth : 1;
virtual bool ShouldExpandSub( const SwTableBox *pBox,
bool bExpandedBefore, sal_uInt16 nDepth ) const;