You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
From 524461f1721d0fb7c5bd115d72ca82711e0ff950 Mon Sep 17 00:00:00 2001
|
|
From: Petr Mladek <pmladek@suse.cz>
|
|
Date: Tue, 6 Nov 2012 15:57:07 +0100
|
|
Subject: [PATCH] fix build with icu-4.0
|
|
|
|
use functions already provided by icu-4.0
|
|
|
|
Change-Id: I238a499ae1bc2a7efeb4d61fbe780e24d7d36a7a
|
|
---
|
|
i18npool/source/ordinalsuffix/ordinalsuffix.cxx | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
|
|
index 6dd7053..03663b6 100644
|
|
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
|
|
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
|
|
@@ -88,7 +88,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;
|
|
|
|
--
|
|
1.7.11.7
|
|
|