summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_measurement.h
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/cxfa_measurement.h
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/cxfa_measurement.h')
-rw-r--r--xfa/fxfa/parser/cxfa_measurement.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/xfa/fxfa/parser/cxfa_measurement.h b/xfa/fxfa/parser/cxfa_measurement.h
index 0212ea1729..2f6af3d43c 100644
--- a/xfa/fxfa/parser/cxfa_measurement.h
+++ b/xfa/fxfa/parser/cxfa_measurement.h
@@ -15,27 +15,27 @@ class CXFA_Measurement {
public:
explicit CXFA_Measurement(const WideStringView& wsMeasure);
CXFA_Measurement();
- CXFA_Measurement(float fValue, XFA_UNIT eUnit);
+ CXFA_Measurement(float fValue, XFA_Unit eUnit);
- static XFA_UNIT GetUnitFromString(const WideStringView& wsUnit);
+ static XFA_Unit GetUnitFromString(const WideStringView& wsUnit);
- void Set(float fValue, XFA_UNIT eUnit) {
+ void Set(float fValue, XFA_Unit eUnit) {
m_fValue = fValue;
m_eUnit = eUnit;
}
- XFA_UNIT GetUnit() const { return m_eUnit; }
+ XFA_Unit GetUnit() const { return m_eUnit; }
float GetValue() const { return m_fValue; }
bool ToString(WideString* wsMeasure) const;
- float ToUnit(XFA_UNIT eUnit) const;
+ float ToUnit(XFA_Unit eUnit) const;
private:
void SetString(const WideStringView& wsMeasure);
- bool ToUnitInternal(XFA_UNIT eUnit, float* fValue) const;
+ bool ToUnitInternal(XFA_Unit eUnit, float* fValue) const;
float m_fValue;
- XFA_UNIT m_eUnit;
+ XFA_Unit m_eUnit;
};
#endif // XFA_FXFA_PARSER_CXFA_MEASUREMENT_H_