diff options
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/characterclassification/cclass_unicode_parser.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier_default.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/i18npool/source/characterclassification/cclass_unicode_parser.cxx b/i18npool/source/characterclassification/cclass_unicode_parser.cxx index 48b25fda158b..08c127e4c940 100644 --- a/i18npool/source/characterclassification/cclass_unicode_parser.cxx +++ b/i18npool/source/characterclassification/cclass_unicode_parser.cxx @@ -958,7 +958,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32 r = ParseResult(); pSym = pTextStart; pSrc = pSym; - aSymbol = OUString(); + aSymbol.clear(); c = *pSrc; cLast = 0; nDecSeps = 0; diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx index 685a756efefb..56da33bc5784 100644 --- a/i18npool/source/indexentry/indexentrysupplier_default.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx @@ -194,7 +194,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm if (key_count > 0 && i + 1 < len ) { for (curr = keyStr[++i]; key_count < MAX_KEYS && keys[key_count-1].key < curr; key_count++) { keys[key_count].key = keys[key_count-1].key+1; - keys[key_count].desc = OUString(); + keys[key_count].desc.clear(); } } else throw RuntimeException(); @@ -228,7 +228,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm mkeys[mkey_count++]=key_count; keys[key_count].key = 0; keys[key_count].mkey = keyStr.copy(i+1, end-i-1); - keys[key_count++].desc=OUString(); + keys[key_count++].desc.clear(); } i=end+1; } else @@ -236,7 +236,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm break; default: keys[key_count].key = curr; - keys[key_count++].desc = OUString(); + keys[key_count++].desc.clear(); break; } } |