summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fxfa_basic.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-08 18:02:12 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-08 18:02:12 +0000
commit6bccc1228ddfccae296f8f4236512caad7cbc1c9 (patch)
treebe2115f4aabd95938a3babdf1b9229a1a633e20a /xfa/fxfa/fxfa_basic.h
parent1d86501aa9ee49890fbb43db60333a42f947cd74 (diff)
downloadpdfium-6bccc1228ddfccae296f8f4236512caad7cbc1c9.tar.xz
Convert XFA_ATTRIBUTETYPE to an enum class
This CL converts XFA_ATTRIBUTETYPE to an enum class XFA_AttributeType. Change-Id: I76185da08fcc8a7a4026ce430238db1b2cecf192 Reviewed-on: https://pdfium-review.googlesource.com/18051 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/fxfa_basic.h')
-rw-r--r--xfa/fxfa/fxfa_basic.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/xfa/fxfa/fxfa_basic.h b/xfa/fxfa/fxfa_basic.h
index 4497cd9435..37e85bb150 100644
--- a/xfa/fxfa/fxfa_basic.h
+++ b/xfa/fxfa/fxfa_basic.h
@@ -939,19 +939,20 @@ struct XFA_ELEMENTINFO {
XFA_ObjectType eObjectType;
};
-enum XFA_ATTRIBUTETYPE {
- XFA_ATTRIBUTETYPE_NOTSURE,
- XFA_ATTRIBUTETYPE_Enum,
- XFA_ATTRIBUTETYPE_Cdata,
- XFA_ATTRIBUTETYPE_Boolean,
- XFA_ATTRIBUTETYPE_Integer,
- XFA_ATTRIBUTETYPE_Measure,
+enum class XFA_AttributeType : uint8_t {
+ NotSure,
+ Enum,
+ CData,
+ Boolean,
+ Integer,
+ Measure,
};
+
struct XFA_ATTRIBUTEINFO {
uint32_t uHash;
const wchar_t* pName;
XFA_Attribute eName;
- XFA_ATTRIBUTETYPE eType;
+ XFA_AttributeType eType;
uint32_t dwPackets;
void* pDefValue;
};
@@ -999,7 +1000,7 @@ enum XFA_UNIT {
struct XFA_NOTSUREATTRIBUTE {
XFA_Element eElement;
XFA_Attribute attribute;
- XFA_ATTRIBUTETYPE eType;
+ XFA_AttributeType eType;
void* pValue;
};