[Libreoffice-commits] .: 2 commits - i18npool/source scp2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Nov 6 06:58:40 PST 2012
i18npool/source/ordinalsuffix/ordinalsuffix.cxx | 4 +++-
scp2/source/ooo/file_library_ooo.scp | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 4b4ddbc7d806de1c847be904ddad653c95f30b60
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Tue Nov 6 15:58:24 2012 +0100
Fix liblangtag name in scp2
Change-Id: I98d90b76dba619b75fd0cdb726678cb98705dc63
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index 07a2cd7..9d59cc4 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -759,16 +759,16 @@ File gid_File_Lib_Langtag
Styles = (PACKED);
Dir = SCP2_OOO_BIN_DIR;
#ifdef MACOSX
- Name = STRING(CONCAT4(liblangtag,.,0,UNXSUFFIX));
+ Name = STRING(CONCAT4(liblangtag,.,1,UNXSUFFIX));
#elif defined WNT
#if defined _gcc3
- Name = STRING(CONCAT4(liblangtag,-,0,.dll));
+ Name = STRING(CONCAT4(liblangtag,-,1,.dll));
#else
// Nothing, statically linked to libi18nisolang1
#endif
#else
// FIXME: use version vars
- Name = STRING(CONCAT4(liblangtag,UNXSUFFIX,.,0));
+ Name = STRING(CONCAT4(liblangtag,UNXSUFFIX,.,1));
#endif
End
commit 524461f1721d0fb7c5bd115d72ca82711e0ff950
Author: Petr Mladek <pmladek at suse.cz>
Date: Tue Nov 6 15:57:07 2012 +0100
fix build with icu-4.0
use functions already provided by icu-4.0
Change-Id: I238a499ae1bc2a7efeb4d61fbe780e24d7d36a7a
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;
More information about the Libreoffice-commits
mailing list