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 /sw/source/uibase/inc/envlop.hxx | |
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 'sw/source/uibase/inc/envlop.hxx')
-rw-r--r-- | sw/source/uibase/inc/envlop.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/inc/envlop.hxx b/sw/source/uibase/inc/envlop.hxx index 0e68dec3dc13..6cae867948ca 100644 --- a/sw/source/uibase/inc/envlop.hxx +++ b/sw/source/uibase/inc/envlop.hxx @@ -31,17 +31,17 @@ #include "envimg.hxx" -#define GetFieldVal(rField) (rField).Denormalize((rField).GetValue(FUNIT_TWIP)) -#define SetFieldVal(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FUNIT_TWIP) +#define GetFieldVal(rField) (rField).Denormalize((rField).GetValue(FieldUnit::TWIP)) +#define SetFieldVal(rField, lValue) (rField).SetValue((rField).Normalize(lValue), FieldUnit::TWIP) inline int getfieldval(weld::MetricSpinButton& rField) { - return rField.denormalize(rField.get_value(FUNIT_TWIP)); + return rField.denormalize(rField.get_value(FieldUnit::TWIP)); } inline void setfieldval(weld::MetricSpinButton& rField, int lValue) { - rField.set_value(rField.normalize(lValue), FUNIT_TWIP); + rField.set_value(rField.normalize(lValue), FieldUnit::TWIP); } class SwEnvDlg; |