summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-11-11 12:42:34 +0100
committerJulien Nabet <serval2412@yahoo.fr>2020-11-11 16:45:44 +0100
commitf7ca7e19942b02b4a19df72a3ca5f6c5fd861887 (patch)
tree145ade5f09261f39c9ff4a4baf91f725f2ee2859 /extensions
parente2b290da0922246f8fb5fcd332bbd41ad165fd43 (diff)
loplugin:stringview (extensions)
Change-Id: If2984a0de77dcd4848f612f057b3e0a79ffef21a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105582 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/download.cxx2
-rw-r--r--extensions/source/update/check/updatecheck.cxx2
2 files changed, 2 insertions, 2 deletions
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";
}