diff options
-rw-r--r-- | extensions/source/update/check/download.cxx | 2 | ||||
-rw-r--r-- | extensions/source/update/check/updatecheck.cxx | 2 |
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"; } |