From 00bc5a097313fbd003675267be961ad3a152ba42 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 3 Dec 2017 21:46:37 +0200 Subject: wrap scoped enum around css::util::NumberFormat Change-Id: Icab5ded8bccdb95f79b3fa35ea164f47919c68fa Reviewed-on: https://gerrit.libreoffice.org/46339 Tested-by: Jenkins Reviewed-by: Eike Rathke --- editeng/source/items/flditem.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editeng') diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx index 4435fcf490b9..21baa1593ee6 100644 --- a/editeng/source/items/flditem.cxx +++ b/editeng/source/items/flditem.cxx @@ -418,7 +418,7 @@ OUString SvxDateField::GetFormatted( Date const & aDate, SvxDateFormat eFormat, nFormatKey = rFormatter.GetFormatIndex( NF_DATE_SYS_NNNNDMMMMYYYY, eLang ); break; default: - nFormatKey = rFormatter.GetStandardFormat( css::util::NumberFormat::DATE, eLang ); + nFormatKey = rFormatter.GetStandardFormat( SvNumFormatType::DATE, eLang ); } double fDiffDate = aDate - rFormatter.GetNullDate(); @@ -675,7 +675,7 @@ OUString SvxExtTimeField::GetFormatted( tools::Time const & aTime, SvxTimeFormat // no builtin format available, try to insert or reuse OUString aFormatCode( "HH:MM:SS.00 AM/PM" ); sal_Int32 nCheckPos; - short nType; + SvNumFormatType nType; rFormatter.PutandConvertEntry( aFormatCode, nCheckPos, nType, nFormatKey, LANGUAGE_ENGLISH_US, eLang ); DBG_ASSERT( nCheckPos == 0, "SvxTimeFormat::HH12_MM_SS_00: could not insert format code" ); @@ -699,7 +699,7 @@ OUString SvxExtTimeField::GetFormatted( tools::Time const & aTime, SvxTimeFormat break; case SvxTimeFormat::Standard: default: - nFormatKey = rFormatter.GetStandardFormat( css::util::NumberFormat::TIME, eLang ); + nFormatKey = rFormatter.GetStandardFormat( SvNumFormatType::TIME, eLang ); } double fFracTime = aTime.GetTimeInDays(); -- cgit