Resolves: tdf#147421 Do not use OUString::replaceAll() to strip null-bytes
commitac5e918bef47a5f7ec4e5c76e94b36753c85e031
authorEike Rathke <erack@redhat.com>
Tue, 15 Feb 2022 14:49:45 +0000 (15 15:49 +0100)
committerXisco Fauli <xiscofauli@libreoffice.org>
Wed, 16 Feb 2022 08:15:48 +0000 (16 09:15 +0100)
treea2e234719485fc06584f5ffe4a59979bf69949ff
parent7f220aeae695e06c5e5dfed6ccf1d8b8f8a13e6e
Resolves: tdf#147421 Do not use OUString::replaceAll() to strip null-bytes

It reallocates and concatenates for each replacement so for
massive amounts takes ages.

Change-Id: Ibe1673fd4775c5b95833000669c1a24e718fd77c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129971
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit 4b0c17609c2cca326bbcc9e8488a327a4a9ea952)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129938
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
sc/source/ui/docshell/impex.cxx