diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-22 12:43:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-24 07:06:31 +0100 |
commit | 82cc30a832dde298832d9f029e0ead94a9d2d14b (patch) | |
tree | 17da02a0e5a6cd625470092aa0b448ddd05c33c3 /xmloff | |
parent | c756f32851e8a0b7eb9c0fee9991f154c758a95c (diff) |
BoolAttrFlags::DefaultMask is unnecessary
Change-Id: Iaae876e180cef95cb45e4c0df63e146aaf5320be
Reviewed-on: https://gerrit.libreoffice.org/63909
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/propertyexport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/forms/propertyexport.hxx | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 73b49f19400c..7ebe2fe1d896 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -267,8 +267,8 @@ namespace xmloff // no check of the property value type: this method is allowed to be called with any integer properties // (e.g. sal_Int32, sal_uInt16 etc) - bool bDefault = (BoolAttrFlags::DefaultTrue == (BoolAttrFlags::DefaultMask & _nBooleanAttributeFlags)); - bool bDefaultVoid = (BoolAttrFlags::DefaultVoid == (BoolAttrFlags::DefaultMask & _nBooleanAttributeFlags)); + bool bDefault(BoolAttrFlags::DefaultTrue & _nBooleanAttributeFlags); + bool bDefaultVoid(BoolAttrFlags::DefaultVoid & _nBooleanAttributeFlags); // get the value bool bCurrentValue = bDefault; diff --git a/xmloff/source/forms/propertyexport.hxx b/xmloff/source/forms/propertyexport.hxx index 2d940bf392df..6cd35a2ba4e4 100644 --- a/xmloff/source/forms/propertyexport.hxx +++ b/xmloff/source/forms/propertyexport.hxx @@ -35,7 +35,6 @@ enum class BoolAttrFlags { DefaultFalse = 0x00, DefaultTrue = 0x01, DefaultVoid = 0x02, - DefaultMask = 0x03, InverseSemantics = 0x04, }; namespace o3tl { |