diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-06 14:37:23 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-08 12:15:51 +0100 |
commit | 9e0770ea7e0cf094add54ad64bc9ff825d24bbe1 (patch) | |
tree | e897291e44ecb11ca44ba5e5ebefe03ac536862f /xmloff | |
parent | 841ee6fb052fb35467d74b70f575a86c8c0fe3b7 (diff) |
Convert FieldUnit to scoped enum
Change-Id: Id2df31daa596a18c79af5fc6ea162deb6e24d5af
Reviewed-on: https://gerrit.libreoffice.org/62958
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 237c041e92cc..804265efb022 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -134,25 +134,25 @@ sal_Int16 SvXMLUnitConverter::GetMeasureUnit(FieldUnit const nFieldUnit) sal_Int16 eUnit = util::MeasureUnit::INCH; switch( nFieldUnit ) { - case FUNIT_MM: + case FieldUnit::MM: eUnit = util::MeasureUnit::MM; break; - case FUNIT_CM: - case FUNIT_M: - case FUNIT_KM: + case FieldUnit::CM: + case FieldUnit::M: + case FieldUnit::KM: eUnit = util::MeasureUnit::CM; break; - case FUNIT_TWIP: + case FieldUnit::TWIP: eUnit = util::MeasureUnit::TWIP; break; - case FUNIT_POINT: - case FUNIT_PICA: + case FieldUnit::POINT: + case FieldUnit::PICA: eUnit = util::MeasureUnit::POINT; break; - case FUNIT_100TH_MM: + case FieldUnit::MM_100TH: eUnit = util::MeasureUnit::MM_100TH; break; - case FUNIT_INCH: + case FieldUnit::INCH: eUnit = util::MeasureUnit::INCH; break; default: |