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 /include/vcl/field.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 'include/vcl/field.hxx')
-rw-r--r-- | include/vcl/field.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index 33c7ecf4e000..0c0abcd9df55 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -222,7 +222,7 @@ public: void SetMin( sal_Int64 nNewMin, FieldUnit eInUnit ); using NumericFormatter::GetMin; sal_Int64 GetMin( FieldUnit eOutUnit ) const; - void SetBaseValue( sal_Int64 nNewBase, FieldUnit eInUnit = FUNIT_NONE ); + void SetBaseValue( sal_Int64 nNewBase, FieldUnit eInUnit = FieldUnit::NONE ); sal_Int64 GetBaseValue() const; virtual void SetValue( sal_Int64 nNewValue, FieldUnit eInUnit ); @@ -486,10 +486,10 @@ public: virtual void SetUnit( FieldUnit meUnit ) override; void SetFirst( sal_Int64 nNewFirst, FieldUnit eInUnit ); - void SetFirst(sal_Int64 first) { SetFirst(first, FUNIT_NONE); } + void SetFirst(sal_Int64 first) { SetFirst(first, FieldUnit::NONE); } sal_Int64 GetFirst( FieldUnit eOutUnit ) const; void SetLast( sal_Int64 nNewLast, FieldUnit eInUnit ); - void SetLast(sal_Int64 last) { SetLast(last, FUNIT_NONE); } + void SetLast(sal_Int64 last) { SetLast(last, FieldUnit::NONE); } sal_Int64 GetLast( FieldUnit eOutUnit ) const; static void SetDefaultUnit( FieldUnit eDefaultUnit ); @@ -660,7 +660,7 @@ public: virtual void CustomConvert() override; virtual void ReformatAll() override; - void InsertValue( sal_Int64 nValue, FieldUnit eInUnit = FUNIT_NONE, + void InsertValue( sal_Int64 nValue, FieldUnit eInUnit = FieldUnit::NONE, sal_Int32 nPos = COMBOBOX_APPEND ); // Needed, because GetValue() with nPos hide these functions |