tdf#163486: PVS: exception thrown by pointer
Since
commit a6ad198d09
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Sat Aug 17 13:19:54 2024 +0200
tdf#158556 use more comphelper::ByteReader
V1022 An exception was thrown by pointer. Consider throwing it by value instead.
Change-Id: I9218d79097975e47822f48838472ca2096d527d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176398
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
parent
b350937ef3
commit
8080459c1c
1 changed files with 1 additions and 1 deletions
|
@ -952,7 +952,7 @@ sal_uInt64 ZipFile::readLOC_Impl(ZipEntry &rEntry, std::vector<sal_Int8>& rNameB
|
|||
aGrabber.seek(nPos);
|
||||
std::array<sal_Int8, 30> aHeader;
|
||||
if (aGrabber.readBytes(aHeader.data(), 30) != 30)
|
||||
throw new uno::RuntimeException();
|
||||
throw uno::RuntimeException();
|
||||
MemoryByteGrabber headerMemGrabber(aHeader.data(), 30);
|
||||
|
||||
sal_Int32 nTestSig = headerMemGrabber.ReadInt32();
|
||||
|
|
Loading…
Reference in a new issue