summaryrefslogtreecommitdiffstats
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-06 15:40:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-06 15:40:28 +0100
commitddeeac32bf2af605ee6fd140e9a4e5ee45684317 (patch)
tree6be2e9358ebd8775ec13ac13d45b3f269cc61514 /i18npool
parentthese warnings are only debug informational really (diff)
downloadcore-ddeeac32bf2af605ee6fd140e9a4e5ee45684317.tar.gz
core-ddeeac32bf2af605ee6fd140e9a4e5ee45684317.zip
use OUString::startsWith instead of OUString::match
Change-Id: I6b88baf83bfce1c28955b445c2c2ddd690cfed2d
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/ordinalsuffix/ordinalsuffix.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index e74fa0306256..6dd70538421e 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 " <<