diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-06-13 10:09:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-15 13:34:14 +0200 |
commit | 4ea281a3ccb5bd21e1808d8cb127a91a1bb72691 (patch) | |
tree | 183a2ab634d770b7ef777323fa6851fc38e14011 /extensions | |
parent | 943f4b4ff1c524c514584c459b899ba3e9dfb71f (diff) |
cppcheck:redundantAssignment
Change-Id: I1167d0ce6b6f6e48309d0551c1d2a283d79546a7
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/check/updatecheck.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx index ff448c2e881c..5ed8a941acc0 100644 --- a/extensions/source/update/check/updatecheck.cxx +++ b/extensions/source/update/check/updatecheck.cxx @@ -1487,7 +1487,7 @@ UpdateCheck::storeReleaseNote(sal_Int8 nNum, const OUString &rURL) osl::FileBase::RC rc; OUString aTargetDir( UpdateCheckConfig::getAllUsersDirectory() + "/sun" ); - rc = osl::Directory::createPath( aTargetDir ); + osl::Directory::createPath( aTargetDir ); OUString aFileName = "releasenote" + OUString::number( nNum ) + @@ -1497,7 +1497,7 @@ UpdateCheck::storeReleaseNote(sal_Int8 nNum, const OUString &rURL) rc = osl::FileBase::getAbsoluteFileURL( aTargetDir, aFileName, aFilePath ); if ( rc != osl::FileBase::E_None ) return false; - rc = osl::File::remove( aFilePath ); + osl::File::remove( aFilePath ); // don't store empty release notes, but delete old ones if ( rURL.isEmpty() ) @@ -1505,7 +1505,6 @@ UpdateCheck::storeReleaseNote(sal_Int8 nNum, const OUString &rURL) osl::File aFile( aFilePath ); rc = aFile.open( osl_File_OpenFlag_Write | osl_File_OpenFlag_Create ); - if ( rc != osl::FileBase::E_None ) return false; OString aLineBuf("[InternetShortcut]\r\n"); |