summaryrefslogtreecommitdiffstats
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-15 11:27:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-15 19:37:25 +0200
commit06c3bd93379053862e57221a550e4e07129bff49 (patch)
tree9e0ea53666f8b2beeddacbd570a8d2e5425b6c87 /i18npool
parentFix English in extended tip (diff)
downloadcore-06c3bd93379053862e57221a550e4e07129bff49.tar.gz
core-06c3bd93379053862e57221a550e4e07129bff49.zip
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.cxx2
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() )