[Libreoffice-commits] .: i18npool/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 6 07:40:59 PDT 2012
i18npool/source/ordinalsuffix/ordinalsuffix.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ddeeac32bf2af605ee6fd140e9a4e5ee45684317
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Sep 6 15:40:28 2012 +0100
use OUString::startsWith instead of OUString::match
Change-Id: I6b88baf83bfce1c28955b445c2c2ddd690cfed2d
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index e74fa03..6dd7053 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -116,7 +116,7 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nN
// fdo#54486 lets make sure that the ordinal format and the non-ordinal
// format match at the start, so that the expectation can be verified
// that there is some trailing "ordinal suffix" which can be extracted
- bool bSimpleOrdinalSuffix = sValueWithOrdinal.match(sValueWithNoOrdinal);
+ bool bSimpleOrdinalSuffix = sValueWithOrdinal.startsWith(sValueWithNoOrdinal);
SAL_WARN_IF(!bSimpleOrdinalSuffix, "i18npool", "ordinal " <<
sValueWithOrdinal << " didn't start with expected " <<
More information about the Libreoffice-commits
mailing list