extensions/source/update/check/download.cxx | 2 +- extensions/source/update/check/updatecheck.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit f7ca7e19942b02b4a19df72a3ca5f6c5fd861887 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Wed Nov 11 12:42:34 2020 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Wed Nov 11 16:45:44 2020 +0100 loplugin:stringview (extensions) Change-Id: If2984a0de77dcd4848f612f057b3e0a79ffef21a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105582 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Jenkins diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx index b59ab56dcfe9..436f48b78416 100644 --- a/extensions/source/update/check/download.cxx +++ b/extensions/source/update/check/download.cxx @@ -344,7 +344,7 @@ Download::start(const OUString& rURL, const OUString& rFile, const OUString& rDe // extract file name last '/' sal_Int32 nIndex = aURL.lastIndexOf('/'); - aFile = rDestinationDir + aURL.copy( nIndex ); + aFile = rDestinationDir + aURL.subView( nIndex ); // check for existing file oslFileError rc = osl_openFile( aFile.pData, &out.FileHandle, osl_File_OpenFlag_Write | osl_File_OpenFlag_Create ); diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx index 997dc7eccd60..b6d32179ac49 100644 --- a/extensions/source/update/check/updatecheck.cxx +++ b/extensions/source/update/check/updatecheck.cxx @@ -117,7 +117,7 @@ OUString getImageFromFileName(const OUString& aFile) sal_uInt32 lastIndex = aUnpackPath.lastIndexOf('/'); if ( lastIndex > 0 ) { - aUnpackPath = aUnpackPath.copy( 0, lastIndex+1 ) + + aUnpackPath = OUString::Concat(aUnpackPath.subView( 0, lastIndex+1 )) + "unpack_update"; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits