diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-04 20:01:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-05 10:40:59 +0100 |
commit | 35f234ec898af275daabb5c0c72eb89f12fa82a0 (patch) | |
tree | de22643902946819e000f4a796f27323d1bb4d52 /vcl | |
parent | 3a40b3649d5ea44435aad99d69680a0525a32406 (diff) |
replace only use of GetDefaultUnit() with FieldUnit::NONE
Change-Id: Idf3cf6d0a361c67d4005d627f661ac49e0e3e9de
Reviewed-on: https://gerrit.libreoffice.org/84459
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 814093ff5818..c64746e5ce17 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1118,8 +1118,6 @@ mm/100 mm cm m km twip point pica inch foot mile #undef M #undef K -FieldUnit MetricField::GetDefaultUnit() { return FieldUnit::NONE; } - static FieldUnit ImplMap2FieldUnit( MapUnit meUnit, long& nDecDigits ) { switch( meUnit ) @@ -1406,7 +1404,7 @@ void MetricFormatter::ImplMetricReformat( const OUString& rStr, double& rValue, inline void MetricFormatter::ImplInit() { mnBaseValue = 0; - meUnit = MetricField::GetDefaultUnit(); + meUnit = FieldUnit::NONE; } MetricFormatter::MetricFormatter(Edit* pEdit) |