summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-06 14:37:23 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-08 12:15:51 +0100
commit9e0770ea7e0cf094add54ad64bc9ff825d24bbe1 (patch)
treee897291e44ecb11ca44ba5e5ebefe03ac536862f /toolkit
parent841ee6fb052fb35467d74b70f575a86c8c0fe3b7 (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 'toolkit')
-rw-r--r--toolkit/source/helper/vclunohelper.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx
index 6e466468e2f1..4308a255afc8 100644
--- a/toolkit/source/helper/vclunohelper.cxx
+++ b/toolkit/source/helper/vclunohelper.cxx
@@ -364,22 +364,22 @@ namespace
sal_Int16 nMeasurementUnit;
sal_Int16 nFieldToMeasureFactor;
} const aUnits[] = {
- { FUNIT_NONE, -1 , -1},
- { FUNIT_MM, MeasureUnit::MM, 1 }, // must precede MM_10TH
- { FUNIT_MM, MeasureUnit::MM_10TH, 10 },
- { FUNIT_100TH_MM, MeasureUnit::MM_100TH, 1 },
- { FUNIT_CM, MeasureUnit::CM, 1 },
- { FUNIT_M, MeasureUnit::M, 1 },
- { FUNIT_KM, MeasureUnit::KM, 1 },
- { FUNIT_TWIP, MeasureUnit::TWIP, 1 },
- { FUNIT_POINT, MeasureUnit::POINT, 1 },
- { FUNIT_PICA, MeasureUnit::PICA, 1 },
- { FUNIT_INCH, MeasureUnit::INCH, 1 }, // must precede INCH_*TH
- { FUNIT_INCH, MeasureUnit::INCH_10TH, 10 },
- { FUNIT_INCH, MeasureUnit::INCH_100TH, 100 },
- { FUNIT_INCH, MeasureUnit::INCH_1000TH, 1000 },
- { FUNIT_FOOT, MeasureUnit::FOOT, 1 },
- { FUNIT_MILE, MeasureUnit::MILE, 1 },
+ { FieldUnit::NONE, -1 , -1},
+ { FieldUnit::MM, MeasureUnit::MM, 1 }, // must precede MM_10TH
+ { FieldUnit::MM, MeasureUnit::MM_10TH, 10 },
+ { FieldUnit::MM_100TH, MeasureUnit::MM_100TH, 1 },
+ { FieldUnit::CM, MeasureUnit::CM, 1 },
+ { FieldUnit::M, MeasureUnit::M, 1 },
+ { FieldUnit::KM, MeasureUnit::KM, 1 },
+ { FieldUnit::TWIP, MeasureUnit::TWIP, 1 },
+ { FieldUnit::POINT, MeasureUnit::POINT, 1 },
+ { FieldUnit::PICA, MeasureUnit::PICA, 1 },
+ { FieldUnit::INCH, MeasureUnit::INCH, 1 }, // must precede INCH_*TH
+ { FieldUnit::INCH, MeasureUnit::INCH_10TH, 10 },
+ { FieldUnit::INCH, MeasureUnit::INCH_100TH, 100 },
+ { FieldUnit::INCH, MeasureUnit::INCH_1000TH, 1000 },
+ { FieldUnit::FOOT, MeasureUnit::FOOT, 1 },
+ { FieldUnit::MILE, MeasureUnit::MILE, 1 },
};
for (auto & aUnit : aUnits)
{
@@ -401,7 +401,7 @@ namespace
return -1;
_rFieldToUNOValueFactor = 1;
- return sal_Int16(FUNIT_NONE);
+ return sal_Int16(FieldUnit::NONE);
}
}