summaryrefslogtreecommitdiff
path: root/comphelper/qa/string/test_string.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-18 21:26:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-18 21:26:40 +0000
commit926be1c961728855c612af2bb7b5d302c7de4441 (patch)
tree584701dfb8682def187009aa351a0098e5099a54 /comphelper/qa/string/test_string.cxx
parente8f92e54b9058a96ad2e0955e4c8c8e6ebb7ee64 (diff)
tidy this up and be consistent
Diffstat (limited to 'comphelper/qa/string/test_string.cxx')
-rw-r--r--comphelper/qa/string/test_string.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index 2f92b8190d15..58fa60a151e7 100644
--- a/comphelper/qa/string/test_string.cxx
+++ b/comphelper/qa/string/test_string.cxx
@@ -200,7 +200,7 @@ public:
const lang::Locale&, sal_Int16 CharType ) throw(uno::RuntimeException)
{
const sal_Unicode *pStr = rText.getStr()+nStartPos;
- for (sal_Int16 nI = nStartPos; nI < rText.getLength(); ++nI)
+ for (sal_Int32 nI = nStartPos; nI < rText.getLength(); ++nI)
{
if (CharType == i18n::CharType::DECIMAL_DIGIT_NUMBER && !IS_DIGIT(*pStr))
return nI;
@@ -216,7 +216,7 @@ public:
const lang::Locale&, sal_Int16 CharType ) throw(uno::RuntimeException)
{
const sal_Unicode *pStr = rText.getStr()+nStartPos;
- for (sal_Int16 nI = nStartPos; nI < rText.getLength(); ++nI)
+ for (sal_Int32 nI = nStartPos; nI < rText.getLength(); ++nI)
{
if (CharType == i18n::CharType::DECIMAL_DIGIT_NUMBER && IS_DIGIT(*pStr))
return nI;