summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_basic_data_attributes.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-08 18:03:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-08 18:03:31 +0000
commit517807e01712c1d4400ec8dde0ab3d9b467bbf04 (patch)
tree002e1d0ecb9cf9bb138fda369509cd8fc46afdd3 /xfa/fxfa/parser/xfa_basic_data_attributes.cpp
parent6bccc1228ddfccae296f8f4236512caad7cbc1c9 (diff)
downloadpdfium-517807e01712c1d4400ec8dde0ab3d9b467bbf04.tar.xz
Convert XFA_UNIT to an enum class
This CL converts the XFA_UNIT enum to the XFA_Unit enum class. Change-Id: I6e0588f265e45b863ff1ecc170279f558fb6bd67 Reviewed-on: https://pdfium-review.googlesource.com/18090 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_basic_data_attributes.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_basic_data_attributes.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/xfa_basic_data_attributes.cpp b/xfa/fxfa/parser/xfa_basic_data_attributes.cpp
index 6f4b2b5b1c..66f5c893ba 100644
--- a/xfa/fxfa/parser/xfa_basic_data_attributes.cpp
+++ b/xfa/fxfa/parser/xfa_basic_data_attributes.cpp
@@ -10,15 +10,15 @@
#include "xfa/fxfa/parser/cxfa_measurement.h"
static const CXFA_Measurement g_XFAMeasurementData[] = {
- CXFA_Measurement(0, XFA_UNIT_In),
- CXFA_Measurement(0, XFA_UNIT_Pt),
- CXFA_Measurement(5, XFA_UNIT_Mm),
- CXFA_Measurement(0.25, XFA_UNIT_Mm),
- CXFA_Measurement(-1, XFA_UNIT_Unknown),
- CXFA_Measurement(0, XFA_UNIT_Angle),
- CXFA_Measurement(10, XFA_UNIT_Pt),
- CXFA_Measurement(360, XFA_UNIT_Angle),
- CXFA_Measurement(0.5, XFA_UNIT_Pt),
+ CXFA_Measurement(0, XFA_Unit::In),
+ CXFA_Measurement(0, XFA_Unit::Pt),
+ CXFA_Measurement(5, XFA_Unit::Mm),
+ CXFA_Measurement(0.25, XFA_Unit::Mm),
+ CXFA_Measurement(-1, XFA_Unit::Unknown),
+ CXFA_Measurement(0, XFA_Unit::Angle),
+ CXFA_Measurement(10, XFA_Unit::Pt),
+ CXFA_Measurement(360, XFA_Unit::Angle),
+ CXFA_Measurement(0.5, XFA_Unit::Pt),
};
const XFA_ATTRIBUTEINFO g_XFAAttributeData[] = {