summaryrefslogtreecommitdiff
path: root/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2012-11-06 15:57:07 +0100
committerPetr Mladek <pmladek@suse.cz>2012-11-20 17:38:54 +0100
commit0c12d92abcc4c61b64decf3063f6067f78a8d60f (patch)
treefb451d781806b00a16bdfa795388bf1261183d7b /i18npool/source/ordinalsuffix/ordinalsuffix.cxx
parent4066e4a4f04000414a7716d9b153cdbe0d2f5189 (diff)
fix build with icu-4.0
use functions already provided by icu-4.0 Change-Id: I238a499ae1bc2a7efeb4d61fbe780e24d7d36a7a (cherry picked from commit 524461f1721d0fb7c5bd115d72ca82711e0ff950) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'i18npool/source/ordinalsuffix/ordinalsuffix.cxx')
-rw-r--r--i18npool/source/ordinalsuffix/ordinalsuffix.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index a0760a0b6306..3d7f560c8b78 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -97,7 +97,9 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nN
return retValue;
icu::UnicodeString sFormatWithNoOrdinal;
- xNumberFormat->format((int32_t)nNumber, sFormatWithNoOrdinal, NULL, nCode);
+ icu::Formattable ftmNumber((int32_t)nNumber);
+ icu::FieldPosition icuPos;
+ xNumberFormat->format(ftmNumber, sFormatWithNoOrdinal, icuPos, nCode);
if (!U_SUCCESS(nCode))
return retValue;