diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /i18npool/source/textconversion | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'i18npool/source/textconversion')
-rw-r--r-- | i18npool/source/textconversion/genconv_dict.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx index 77a676fff356..fbd6b0eb74f2 100644 --- a/i18npool/source/textconversion/genconv_dict.cxx +++ b/i18npool/source/textconversion/genconv_dict.cxx @@ -193,7 +193,7 @@ void make_stc_char(FILE *sfp, FILE *cfp) OUString Ostr((const sal_Char *)Cstr, strlen(Cstr) - 1, RTL_TEXTENCODING_UTF8); const sal_Unicode *Ustr = Ostr.getStr(); sal_Int32 len = Ostr.getLength(); - if (Ustr[1] == sal_Unicode('v')) + if (Ustr[1] == 'v') SChinese2VChineseData[Ustr[0]] = Ustr[2]; else { SChinese2TChineseData[Ustr[0]] = Ustr[2]; @@ -363,9 +363,9 @@ void make_stc_word(FILE *sfp, FILE *cfp) return; } sal_Int32 sep=-1, eq=-1, gt=-1, lt=-1; - if (((sep = eq = Ostr.indexOf(sal_Unicode('='))) > 0) || - ((sep = gt = Ostr.indexOf(sal_Unicode('>'))) > 0) || - ((sep = lt = Ostr.indexOf(sal_Unicode('<'))) > 0)) { + if (((sep = eq = Ostr.indexOf('=')) > 0) || + ((sep = gt = Ostr.indexOf('>')) > 0) || + ((sep = lt = Ostr.indexOf('<')) > 0)) { if (eq > 0 || gt > 0) { STC_WordEntry_S2T[count_S2T].address = sal::static_int_cast<sal_uInt16>( char_total ); |