summaryrefslogtreecommitdiffstats
path: root/include/oox/dump
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-12 17:12:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 07:56:21 +0200
commita84e3df74eecc8778e3d5be5dd80ad4ddb511edf (patch)
tree37c5f3584aab3fd520dbe0daf0950d7bbb3173c1 /include/oox/dump
parentloplugin:constfields in sc (diff)
downloadcore-a84e3df74eecc8778e3d5be5dd80ad4ddb511edf.tar.gz
core-a84e3df74eecc8778e3d5be5dd80ad4ddb511edf.zip
loplugin:constfields in oox
Change-Id: I1e110d193ebfa30ab1ab0d85bfb6dc409e341439 Reviewed-on: https://gerrit.libreoffice.org/61728 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox/dump')
-rw-r--r--include/oox/dump/dumperbase.hxx8
-rw-r--r--include/oox/dump/oledumper.hxx22
2 files changed, 15 insertions, 15 deletions
diff --git a/include/oox/dump/dumperbase.hxx b/include/oox/dump/dumperbase.hxx
index 03369e2d8d03..7367bfd6cec7 100644
--- a/include/oox/dump/dumperbase.hxx
+++ b/include/oox/dump/dumperbase.hxx
@@ -800,8 +800,8 @@ private:
typedef ::std::map< OUString, NameListRef > NameListMap;
css::uno::Reference< css::uno::XComponentContext > mxContext;
- StorageRef mxRootStrg;
- OUString maSysFileName;
+ StorageRef const mxRootStrg;
+ OUString const maSysFileName;
ConfigFileSet maConfigFiles;
ConfigDataMap maConfigData;
NameListMap maNameLists;
@@ -1184,8 +1184,8 @@ private:
private:
struct PreferredItem
{
- OUString maName;
- bool mbStorage;
+ OUString const maName;
+ bool const mbStorage;
explicit PreferredItem( const OUString& rName, bool bStorage ) :
maName( rName ), mbStorage( bStorage ) {}
diff --git a/include/oox/dump/oledumper.hxx b/include/oox/dump/oledumper.hxx
index ef18258da217..a5349252c39c 100644
--- a/include/oox/dump/oledumper.hxx
+++ b/include/oox/dump/oledumper.hxx
@@ -174,11 +174,11 @@ private:
bool dumpComCtlComplex();
protected:
- sal_uInt32 mnDataId5;
- sal_uInt32 mnDataId6;
- sal_uInt16 mnVersion;
- bool mbCommonPart;
- bool mbComplexPart;
+ sal_uInt32 const mnDataId5;
+ sal_uInt32 const mnDataId6;
+ sal_uInt16 const mnVersion;
+ bool const mbCommonPart;
+ bool const mbComplexPart;
};
@@ -350,9 +350,9 @@ private:
{
enum LargePropertyType { PROPTYPE_POS, PROPTYPE_SIZE, PROPTYPE_GUID, PROPTYPE_STRING, PROPTYPE_STRINGARRAY };
- LargePropertyType mePropType;
- OUString maItemName;
- sal_uInt32 mnDataSize;
+ LargePropertyType const mePropType;
+ OUString const maItemName;
+ sal_uInt32 const mnDataSize;
OUString* mpItemValue;
explicit LargeProperty( LargePropertyType ePropType, const String& rItemName, sal_uInt32 nDataSize, OUString* pItemValue = nullptr ) :
mePropType( ePropType ), maItemName( rItemName ), mnDataSize( nDataSize ), mpItemValue( pItemValue ) {}
@@ -361,8 +361,8 @@ private:
struct StreamProperty
{
- OUString maItemName;
- sal_uInt16 mnData;
+ OUString const maItemName;
+ sal_uInt16 const mnData;
explicit StreamProperty( const String& rItemName, sal_uInt16 nData ) :
maItemName( rItemName ), mnData( nData ) {}
};
@@ -761,7 +761,7 @@ protected:
private:
VbaSharedData& mrVbaData;
- sal_Int32 mnStrmOffset;
+ sal_Int32 const mnStrmOffset;
};