diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-11 13:55:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-13 08:35:16 +0200 |
commit | 67649406d7b72f8d6ea4bbe76e775e0052ddefc3 (patch) | |
tree | 3cf40f61c1e30a1cba78ba21c7d2e6ac3d274694 /package | |
parent | e7cc6b253f5a1fd1205da231f6a14011501ed74e (diff) |
loplugin:returnconstant in oox,package
Change-Id: I1dade7ddde6b1e226861d32f24f65be5bb9d9352
Reviewed-on: https://gerrit.libreoffice.org/58880
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/ZipFile.hxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx index c5353b6c17d2..3dceb036c3bd 100644 --- a/package/inc/ZipFile.hxx +++ b/package/inc/ZipFile.hxx @@ -82,7 +82,7 @@ class ZipFile void getSizeAndCRC( sal_Int64 nOffset, sal_Int64 nCompressedSize, sal_Int64 *nSize, sal_Int32 *nCRC ); - bool readLOC( ZipEntry &rEntry ); + void readLOC( ZipEntry &rEntry ); sal_Int32 readCEN(); sal_Int32 findEND(); void recover(); diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index d2fa8a456392..27a89f27a1ba 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -755,7 +755,7 @@ uno::Reference< XInputStream > ZipFile::getWrappedRawStream( return createStreamForZipEntry ( aMutexHolder, rEntry, rData, UNBUFF_STREAM_WRAPPEDRAW, true, true, aMediaType ); } -bool ZipFile::readLOC( ZipEntry &rEntry ) +void ZipFile::readLOC( ZipEntry &rEntry ) { ::osl::MutexGuard aGuard( m_aMutexHolder->GetMutex() ); @@ -821,8 +821,6 @@ bool ZipFile::readLOC( ZipEntry &rEntry ) if ( bBroken && !bRecoveryMode ) throw ZipIOException("The stream seems to be broken!" ); - - return true; } sal_Int32 ZipFile::findEND() |