diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 14:55:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-24 08:47:57 +0200 |
commit | 00c3ea0ac629f695d22bb1debba385532f965379 (patch) | |
tree | 9710841b0b2aa0ae37a3798837d93adfb60d95f5 /cui | |
parent | 20d1ee06c0242948e7e512db5465fdbdedc70916 (diff) |
convert SvxNumberValueType to scoped enum
Change-Id: Ic82c18c16de8bd756a444de47c9a68e88fa1c7ee
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 51b918742d6d..d37ed270e8bd 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -412,7 +412,7 @@ void SvxNumberFormatTabPage::Reset( const SfxItemSet* rSet ) sal_uInt16 nFmtLbSelPos = 0; LanguageType eLangType = LANGUAGE_DONTKNOW; std::vector<OUString> aFmtEntryList; - SvxNumberValueType eValType = SVX_VALUE_TYPE_UNDEFINED; + SvxNumberValueType eValType = SvxNumberValueType::Undefined; double nValDouble = 0; OUString aValString; @@ -501,15 +501,15 @@ void SvxNumberFormatTabPage::Reset( const SfxItemSet* rSet ) switch ( eValType ) { - case SVX_VALUE_TYPE_STRING: + case SvxNumberValueType::String: aValString = pNumItem->GetValueString(); break; - case SVX_VALUE_TYPE_NUMBER: + case SvxNumberValueType::Number: // #50441# string may be set in addition to the value aValString = pNumItem->GetValueString(); nValDouble = pNumItem->GetValueDouble(); break; - case SVX_VALUE_TYPE_UNDEFINED: + case SvxNumberValueType::Undefined: default: break; } @@ -521,7 +521,7 @@ void SvxNumberFormatTabPage::Reset( const SfxItemSet* rSet ) : ULONG_MAX; // == DONT_KNOW - if ( eValType == SVX_VALUE_TYPE_STRING ) + if ( eValType == SvxNumberValueType::String ) pNumFmtShell =SvxNumberFormatShell::Create( pNumItem->GetNumberFormatter(), (pValFmtAttr) ? nInitFormat : 0L, |