From a7f6efc68ba97db98ebab9ebc473bffb8ded757f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Jan 2016 10:39:48 +0200 Subject: loplugin: unused return values Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/ucbstorage.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 6c1f90876c80..3b69a4b2c6fc 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -449,7 +449,7 @@ public: sal_uInt64 ReadSourceWriteTemporary( sal_uInt64 aLength ); // read aLength from source and copy to temporary, // no seeking is produced - sal_uLong ReadSourceWriteTemporary(); // read source till the end and copy to temporary, + void ReadSourceWriteTemporary(); // read source till the end and copy to temporary, void CopySourceToTemporary(); // same as ReadSourceWriteToTemporary() // but the writing is done at the end of temporary @@ -793,13 +793,11 @@ bool UCBStorageStream_Impl::Init() return true; } -sal_uLong UCBStorageStream_Impl::ReadSourceWriteTemporary() +void UCBStorageStream_Impl::ReadSourceWriteTemporary() { // read source stream till the end and copy all the data to // the current position of the temporary stream - sal_uLong aResult = 0; - if( m_bSourceRead ) { Sequence aData(32000); @@ -810,7 +808,7 @@ sal_uLong UCBStorageStream_Impl::ReadSourceWriteTemporary() do { aReaded = m_rSource->readBytes( aData, 32000 ); - aResult += m_pStream->Write( aData.getArray(), aReaded ); + m_pStream->Write( aData.getArray(), aReaded ); } while( aReaded == 32000 ); } catch (const Exception &e) @@ -821,9 +819,6 @@ sal_uLong UCBStorageStream_Impl::ReadSourceWriteTemporary() } m_bSourceRead = false; - - return aResult; - } sal_uInt64 UCBStorageStream_Impl::ReadSourceWriteTemporary(sal_uInt64 aLength) -- cgit