summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/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/source/misc/string.cxx
parente8f92e54b9058a96ad2e0955e4c8c8e6ebb7ee64 (diff)
tidy this up and be consistent
Diffstat (limited to 'comphelper/source/misc/string.cxx')
-rw-r--r--comphelper/source/misc/string.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx
index 6f088f4bbdc6..9a9a9b8901c5 100644
--- a/comphelper/source/misc/string.cxx
+++ b/comphelper/source/misc/string.cxx
@@ -228,19 +228,19 @@ uno::Sequence< ::rtl::OUString >
sal_Int32 compareNatural( const ::rtl::OUString & rLHS, const ::rtl::OUString & rRHS,
const uno::Reference< i18n::XCollator > &rCollator,
const uno::Reference< i18n::XBreakIterator > &rBI,
- const lang::Locale &rLocale) SAL_THROW(())
+ const lang::Locale &rLocale )
{
- sal_Int16 nRet = 0;
+ sal_Int32 nRet = 0;
- sal_Int16 nLHSLastNonDigitPos = 0;
- sal_Int16 nRHSLastNonDigitPos = 0;
- sal_Int16 nLHSFirstDigitPos = 0;
- sal_Int16 nRHSFirstDigitPos = 0;
+ sal_Int32 nLHSLastNonDigitPos = 0;
+ sal_Int32 nRHSLastNonDigitPos = 0;
+ sal_Int32 nLHSFirstDigitPos = 0;
+ sal_Int32 nRHSFirstDigitPos = 0;
while (nLHSFirstDigitPos < rLHS.getLength() || nRHSFirstDigitPos < rRHS.getLength())
{
- sal_Int16 nLHSChunkLen;
- sal_Int16 nRHSChunkLen;
+ sal_Int32 nLHSChunkLen;
+ sal_Int32 nRHSChunkLen;
//Compare non digit block as normal strings
nLHSFirstDigitPos = rBI->nextCharBlock(rLHS, nLHSLastNonDigitPos,