diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-05-28 19:41:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 11:55:13 +0200 |
commit | 9881bea8d41997fb46579eb5f0314300159c96cc (patch) | |
tree | f52daa7055d2d28959e2d1ad576d963b7c0d3b2d /i18npool/source/indexentry | |
parent | ec4034c4a4f23574401ba2a74b635d9ed4befbc8 (diff) |
remove unnecessary use of OUString::getStr
Change-Id: I3d13e1c0bb6aa4a7aacc463198747c1368ebc9b4
Reviewed-on: https://gerrit.libreoffice.org/38114
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source/indexentry')
-rw-r--r-- | i18npool/source/indexentry/genindex_data.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/i18npool/source/indexentry/genindex_data.cxx b/i18npool/source/indexentry/genindex_data.cxx index a185d753462c..d505dc9b661f 100644 --- a/i18npool/source/indexentry/genindex_data.cxx +++ b/i18npool/source/indexentry/genindex_data.cxx @@ -119,7 +119,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) fprintf(fp, "\n};\n\n"); sal_Int32 len=result.getLength(); - const sal_Unicode *ustr=result.getStr(); fprintf(fp, "\nstatic const sal_uInt16 idx2[] = {"); for (i = k = 0; i <= max_index; i++) { if (index[i] != 0xFFFF) { @@ -129,7 +128,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) fprintf( fp, "0x%04lx, ", sal::static_int_cast< unsigned long >( - ad == -1 ? 0 : max == 2 ? ustr[ad] : ad)); + ad == -1 ? 0 : max == 2 ? result[ad] : ad)); } fprintf(fp, "\n\t"); } @@ -142,7 +141,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) fprintf(fp, "\nstatic const sal_uInt16 idx3[] = {"); for (i = k = 0; i < len; i++) { if (k++ % 16 == 0) fprintf(fp, "\n\t"); - fprintf(fp, "0x%04x, ", (sep.toChar() == ustr[i]) ? 0 : ustr[i]); + fprintf(fp, "0x%04x, ", (sep.toChar() == result[i]) ? 0 : result[i]); } fprintf(fp, "\n};\n\n"); } |