summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
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/xml
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/xml')
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.hxx2
-rw-r--r--sw/source/filter/xml/xmlfmt.cxx4
-rw-r--r--sw/source/filter/xml/xmlitmap.hxx6
-rw-r--r--sw/source/filter/xml/xmlmeta.cxx2
-rw-r--r--sw/source/filter/xml/xmltble.cxx2
-rw-r--r--sw/source/filter/xml/xmltbli.cxx18
-rw-r--r--sw/source/filter/xml/xmltexti.cxx4
7 files changed, 19 insertions, 19 deletions
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.hxx b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
index 2cd397d040fc..a0918c71e771 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.hxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
@@ -48,7 +48,7 @@ class XMLRedlineImportHelper final
// if true, no redlines should be inserted into document
// (This typically happen when a document is loaded in 'insert'-mode.)
- bool bIgnoreRedlines;
+ bool const bIgnoreRedlines;
// save information for saving and reconstruction of the redline mode
css::uno::Reference<css::beans::XPropertySet> xModelPropertySet;
diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx
index 1388d3b5a557..d20bac180097 100644
--- a/sw/source/filter/xml/xmlfmt.cxx
+++ b/sw/source/filter/xml/xmlfmt.cxx
@@ -65,13 +65,13 @@ using namespace ::xmloff::token;
class SwXMLConditionParser_Impl
{
- OUString sInput;
+ OUString const sInput;
Master_CollCondition nCondition;
sal_uInt32 nSubCondition;
sal_Int32 nPos;
- sal_Int32 nLength;
+ sal_Int32 const nLength;
inline bool SkipWS();
inline bool MatchChar( sal_Unicode c );
diff --git a/sw/source/filter/xml/xmlitmap.hxx b/sw/source/filter/xml/xmlitmap.hxx
index 8cc89046d00a..3123dae2255e 100644
--- a/sw/source/filter/xml/xmlitmap.hxx
+++ b/sw/source/filter/xml/xmlitmap.hxx
@@ -38,14 +38,14 @@
struct SvXMLItemMapEntry
{
- sal_uInt16 nNameSpace; // declares the Namespace in which this item
+ sal_uInt16 const nNameSpace; // declares the Namespace in which this item
// exists
- enum ::xmloff::token::XMLTokenEnum eLocalName;
+ enum ::xmloff::token::XMLTokenEnum const eLocalName;
// the local name for the item inside
// the Namespace (as an XMLTokenEnum)
sal_uInt16 nWhichId; // the WhichId to identify the item
// in the pool
- sal_uInt32 nMemberId; // the memberid specifies which part
+ sal_uInt32 const nMemberId; // the memberid specifies which part
// of the item should be imported or
// exported with this Namespace
// and localName
diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx
index 3dcf81038287..d984abb6017e 100644
--- a/sw/source/filter/xml/xmlmeta.cxx
+++ b/sw/source/filter/xml/xmlmeta.cxx
@@ -84,7 +84,7 @@ enum SvXMLTokenMapAttrs
};
struct statistic {
- SvXMLTokenMapAttrs token;
+ SvXMLTokenMapAttrs const token;
const char* name;
sal_uInt16 SwDocStat::* target16;
sal_uLong SwDocStat::* target32; /* or 64, on LP64 platforms */
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index 9dbc82d0e92a..a15b7269da01 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -485,7 +485,7 @@ class SwXMLTableInfo_Impl
const SwTable *m_pTable;
Reference<XTextSection> m_xBaseSection;
bool m_bBaseSectionValid;
- sal_uInt32 m_nPrefix;
+ sal_uInt32 const m_nPrefix;
public:
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 92c53688a6cd..8517963383f8 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -399,7 +399,7 @@ class SwXMLTableCellContext_Impl : public SvXMLImportContext
OUString mXmlId;
OUString m_StringValue;
- SvXMLImportContextRef m_xMyTable;
+ SvXMLImportContextRef const m_xMyTable;
double m_fValue;
bool m_bHasValue;
@@ -728,7 +728,7 @@ void SwXMLTableCellContext_Impl::EndElement()
class SwXMLTableColContext_Impl : public SvXMLImportContext
{
- SvXMLImportContextRef xMyTable;
+ SvXMLImportContextRef const xMyTable;
SwXMLTableContext *GetTable() { return static_cast<SwXMLTableContext *>(xMyTable.get()); }
@@ -813,7 +813,7 @@ SwXMLTableColContext_Impl::SwXMLTableColContext_Impl(
class SwXMLTableColsContext_Impl : public SvXMLImportContext
{
- SvXMLImportContextRef xMyTable;
+ SvXMLImportContextRef const xMyTable;
SwXMLTableContext *GetTable() { return static_cast<SwXMLTableContext *>(xMyTable.get()); }
@@ -861,7 +861,7 @@ SvXMLImportContextRef SwXMLTableColsContext_Impl::CreateChildContext(
class SwXMLTableRowContext_Impl : public SvXMLImportContext
{
- SvXMLImportContextRef xMyTable;
+ SvXMLImportContextRef const xMyTable;
sal_uInt32 nRowRepeat;
@@ -978,9 +978,9 @@ SvXMLImportContextRef SwXMLTableRowContext_Impl::CreateChildContext(
class SwXMLTableRowsContext_Impl : public SvXMLImportContext
{
- SvXMLImportContextRef xMyTable;
+ SvXMLImportContextRef const xMyTable;
- bool bHeader;
+ bool const bHeader;
SwXMLTableContext *GetTable() { return static_cast<SwXMLTableContext *>(xMyTable.get()); }
@@ -1199,9 +1199,9 @@ static SwDDEFieldType* lcl_GetDDEFieldType(SwXMLDDETableContext_Impl* pContext,
class TableBoxIndex
{
public:
- OUString msName;
- sal_Int32 mnWidth;
- bool mbProtected;
+ OUString const msName;
+ sal_Int32 const mnWidth;
+ bool const mbProtected;
TableBoxIndex( const OUString& rName, sal_Int32 nWidth,
bool bProtected ) :
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index 0fd22a8b2309..b53404402342 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -72,9 +72,9 @@ using namespace xml::sax;
struct XMLServiceMapEntry_Impl
{
const sal_Char *sFilterService;
- sal_Int32 nFilterServiceLen;
+ sal_Int32 const nFilterServiceLen;
- sal_uInt32 n1;
+ sal_uInt32 const n1;
sal_uInt16 n2, n3;
sal_uInt8 n4, n5, n6, n7, n8, n9, n10, n11;
};