diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-15 11:27:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-15 19:37:25 +0200 |
commit | 06c3bd93379053862e57221a550e4e07129bff49 (patch) | |
tree | 9e0ea53666f8b2beeddacbd570a8d2e5425b6c87 /i18npool | |
parent | 8e27e5b010d4d98400c97e5575ad77844848d7c7 (diff) |
unnecessary realloc
the transliterate functions will realloc the Sequence, no need to do it
here
Change-Id: Ia53e79b7586679b5c8a2a47c11b86e336195a4cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135872
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/transliteration/transliterationImpl.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index d397279435ce..dc9e5a234e5b 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -295,8 +295,6 @@ TransliterationImpl::transliterate( const OUString& inStr, sal_Int32 startPos, s if (numCascade == 0) return inStr; - if (offset.getLength() != nCount) - offset.realloc(nCount); if (numCascade == 1) { if ( startPos == 0 && nCount == inStr.getLength() ) |