diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-28 20:00:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-04 18:49:48 +0200 |
commit | ce2792eda318b2760d24d2a744fc89e6a1d87138 (patch) | |
tree | 55ee0998313380481b566c5ff9874f02d5ea5308 /package/source/zippackage/ZipPackageStream.cxx | |
parent | f9309a171a762b888bdfbea1dba8cbc1683be089 (diff) |
use C++11 exception rethrowing
for those cases where we are doing relatively simple catching and rethrowing
e.g. catch in one thread and throw in main thread.
Change-Id: I6192017c4ec99dd671a9582f7b004096b0fc4525
Reviewed-on: https://gerrit.libreoffice.org/58588
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'package/source/zippackage/ZipPackageStream.cxx')
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index 0c780718b251..5fe4d0ef80c5 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -473,9 +473,9 @@ private: mpEntry->closeBufferFile(); mpEntry->setFinished(); } - catch (const uno::Exception&) + catch (...) { - mpEntry->setParallelDeflateException(::cppu::getCaughtException()); + mpEntry->setParallelDeflateException(std::current_exception()); try { if (mpEntry->m_xOutStream.is()) |