summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-02-11 15:56:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-12 10:31:25 +0100
commitf147b160aef1735d34c488353a7d4b875788a7e1 (patch)
treeab3bd613cf016cde906b3fdcbaab4246ca699e1e /tools
parent718f540fb63af27c1336f89213444e9af753b8a9 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: Ifa384933569b27d0d08eb479bb95b799163ae386 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88450 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/strmunx.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index a0cfd7c09d74..9a55831e26f2 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -279,7 +279,7 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos)
}
if ( nPos != STREAM_SEEK_TO_END )
return nPos;
- rc = osl_getFilePos( pInstanceData->rHandle, &nNewPos );
+ osl_getFilePos( pInstanceData->rHandle, &nNewPos );
return nNewPos;
}
SetError( SVSTREAM_GENERALERROR );
@@ -438,7 +438,7 @@ void SvFileStream::Open( const OUString& rFilename, StreamMode nOpenMode )
if ( !LockFile() ) // whole file
{
- rc = osl_closeFile( nHandleTmp );
+ osl_closeFile( nHandleTmp );
bIsOpen = false;
m_isWritable = false;
pInstanceData->rHandle = nullptr;