diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-02-26 22:40:16 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-02-27 11:25:50 +0100 |
commit | 543b432f132ef928216526854aa0df4d94b76dca (patch) | |
tree | 4a7fda2a1747bf51b6bfc8891eaebb1daa81b224 /i18npool/source/transliteration/transliteration_commonclass.cxx | |
parent | 802fe48751e3baaecd9d279ef496c8a2c3cb0a2c (diff) |
18npool: these variables should be signed
Change-Id: I6519a4c9da2a95efcc54288b3ef9d0a19ccfef3c
Diffstat (limited to 'i18npool/source/transliteration/transliteration_commonclass.cxx')
-rw-r--r-- | i18npool/source/transliteration/transliteration_commonclass.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
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 <sal_Int32> offset1(2*len1); Sequence <sal_Int32> 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; |