summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry/genindex_data.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/indexentry/genindex_data.cxx')
-rw-r--r--i18npool/source/indexentry/genindex_data.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/indexentry/genindex_data.cxx b/i18npool/source/indexentry/genindex_data.cxx
index 36e17bb19d4d..a4bca51839ab 100644
--- a/i18npool/source/indexentry/genindex_data.cxx
+++ b/i18npool/source/indexentry/genindex_data.cxx
@@ -73,7 +73,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
printf("Code point 0x%lx exceeds MAX_ADDRESS 0x%x, Please increase MAX_ADDRESS", static_cast<long unsigned int>(nChar), MAX_ADDRESS);
exit(1);
}
- OUString key=Ostr.copy(nPos)+sep;
+ OUString key=Ostr.subView(nPos)+sep;
sal_Int32 idx = result.indexOf(key);
if (key.getLength() > max) max=key.getLength();
if (idx >= 0) {