Kaydet (Commit) 82cc30a8 authored tarafından Noel Grandin's avatar Noel Grandin

BoolAttrFlags::DefaultMask is unnecessary

Change-Id: Iaae876e180cef95cb45e4c0df63e146aaf5320be
Reviewed-on: https://gerrit.libreoffice.org/63909
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c756f328
......@@ -1542,5 +1542,3 @@ writerfilter/source/ooxml/OOXMLFactory.hxx:57
enum writerfilter::ooxml::ResourceType HpsMeasure
writerfilter/source/ooxml/OOXMLFactory.hxx:58
enum writerfilter::ooxml::ResourceType MeasurementOrPercent
xmloff/source/forms/propertyexport.hxx:38
enum BoolAttrFlags DefaultMask
......@@ -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;
......
......@@ -35,7 +35,6 @@ enum class BoolAttrFlags {
DefaultFalse = 0x00,
DefaultTrue = 0x01,
DefaultVoid = 0x02,
DefaultMask = 0x03,
InverseSemantics = 0x04,
};
namespace o3tl {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment