summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-23 10:05:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-23 11:13:22 +0100
commitaa79a832b4e1fd994654c31fedf7a549de03fee4 (patch)
treed7f381a10d219cfcdd89ed90b0b8afd717f2a762 /package
parente89358aeca3dcb224917e30a7bfbc74f9995480a (diff)
coverity#706585 Uncaught exception
Change-Id: Ic8d2963536b793f0a229901d9e13d8e54842d9b9
Diffstat (limited to 'package')
-rw-r--r--package/inc/ZipPackageStream.hxx2
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx
index d8b686eb6c2a..45c008a8108d 100644
--- a/package/inc/ZipPackageStream.hxx
+++ b/package/inc/ZipPackageStream.hxx
@@ -165,7 +165,7 @@ public:
// XDataSinkEncrSupport
virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getDataStream()
- throw ( ::com::sun::star::packages::WrongPasswordException,
+ throw ( ::com::sun::star::packages::WrongPasswordException, ::com::sun::star::packages::zip::ZipException,
::com::sun::star::io::IOException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getRawStream()
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index 37710c033d30..430ba001bfcb 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -516,7 +516,7 @@ uno::Reference< io::XInputStream > SAL_CALL ZipPackageStream::getInputStream()
// XDataSinkEncrSupport
uno::Reference< io::XInputStream > SAL_CALL ZipPackageStream::getDataStream()
- throw ( packages::WrongPasswordException,
+ throw ( packages::WrongPasswordException, ZipException,
io::IOException,
RuntimeException, std::exception )
{