From 543b432f132ef928216526854aa0df4d94b76dca Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 26 Feb 2015 22:40:16 +0100 Subject: 18npool: these variables should be signed Change-Id: I6519a4c9da2a95efcc54288b3ef9d0a19ccfef3c --- .../transliteration/transliteration_commonclass.cxx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'i18npool/source/transliteration/transliteration_commonclass.cxx') diff --git a/i18npool/source/transliteration/transliteration_commonclass.cxx b/i18npool/source/transliteration/transliteration_commonclass.cxx index 8981641fcadc..1bdddccf838b 100644 --- a/i18npool/source/transliteration/transliteration_commonclass.cxx +++ b/i18npool/source/transliteration/transliteration_commonclass.cxx @@ -80,24 +80,19 @@ transliteration_commonclass::compareSubstring( const OUString& str2, sal_Int32 off2, sal_Int32 len2) throw(RuntimeException, std::exception) { - const sal_Unicode* unistr1 = NULL; - const sal_Unicode* unistr2 = NULL; - sal_uInt32 strlen1; - sal_uInt32 strlen2; - Sequence offset1(2*len1); Sequence offset2(2*len2); OUString in_str1 = this->transliterate(str1, off1, len1, offset1); OUString in_str2 = this->transliterate(str2, off2, len2, offset2); - strlen1 = in_str1.getLength(); - strlen2 = in_str2.getLength(); - unistr1 = in_str1.getStr(); - unistr2 = in_str2.getStr(); + sal_Int32 strlen1 = in_str1.getLength(); + sal_Int32 strlen2 = in_str2.getLength(); + const sal_Unicode* unistr1 = in_str1.getStr(); + const sal_Unicode* unistr2 = in_str2.getStr(); while (strlen1 && strlen2) { - sal_uInt32 ret = *unistr1 - *unistr2; + sal_Int32 ret = *unistr1 - *unistr2; if (ret) return ret; -- cgit