tools/source/fsys/urlobj.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4bd8b4e469a4084eee0ec467721704ae51f82301 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue May 24 14:08:03 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue May 24 21:21:17 2022 +0200 no need to call makeStringAndClear here we are passing it to a u16string_view arg Change-Id: Ieef467fde2acccedf41381e97e93034fffceca22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134873 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index ad96d1eecf10..00e3207b2d3b 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -3360,7 +3360,7 @@ bool INetURLObject::insertName(std::u16string_view rTheName, } aNewPath.append(pSuffixBegin, pPathEnd - pSuffixBegin); - return setPath(aNewPath.makeStringAndClear(), EncodeMechanism::NotCanonical, + return setPath(aNewPath, EncodeMechanism::NotCanonical, RTL_TEXTENCODING_UTF8); } @@ -4053,7 +4053,7 @@ bool INetURLObject::removeSegment(sal_Int32 nIndex, bool bIgnoreFinalSlash) aNewPath.append('/'); } - return setPath(aNewPath.makeStringAndClear(), EncodeMechanism::NotCanonical, + return setPath(aNewPath, EncodeMechanism::NotCanonical, RTL_TEXTENCODING_UTF8); }