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>
This commit is contained in:
Noel Grandin 2022-06-15 11:27:58 +02:00
parent 8e27e5b010
commit 06c3bd9337

View file

@ -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() )