summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-18 10:39:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-18 12:50:09 +0000
commita7f6efc68ba97db98ebab9ebc473bffb8ded757f (patch)
treebad37ce9ee1c9f61f1c8541a9689ecdea8c84c08 /sot
parenta08745551370a052bfb6b91335956ababf435791 (diff)
loplugin: unused return values
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx11
1 files changed, 3 insertions, 8 deletions
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<sal_Int8> 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)