diff options
author | lbenes <lukebenes@hotmail.com> | 2016-07-29 19:40:56 -0400 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-01 06:30:12 +0000 |
commit | a4a71214d69ce2ef3f1e8dbbf17362ce50e55a45 (patch) | |
tree | 01693bfca0c47282c3eb4b65110758d43b07232a | |
parent | b38a2d57160fcb0204b05055190d3df6315f51b1 (diff) |
comphelper: fix MSVC 2015 build by removing pointless catch
In C++11 the destructors are implicitly noexcept.
Change-Id: I37e78e39bcc19dfbc81a781a5b353e49f09ae942
Reviewed-on: https://gerrit.libreoffice.org/27708
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | comphelper/source/misc/threadpool.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx index 45425fbe778d..f399274eed24 100644 --- a/comphelper/source/misc/threadpool.cxx +++ b/comphelper/source/misc/threadpool.cxx @@ -72,17 +72,7 @@ public: { SAL_WARN("comphelper", "exception in thread worker while calling doWork(): " << e.Message); } - try { - delete pTask; - } - catch (const std::exception &e) - { - SAL_WARN("comphelper", "exception in thread worker while deleting task: " << e.what()); - } - catch (const css::uno::Exception &e) - { - SAL_WARN("comphelper", "exception in thread worker while deleting task: " << e.Message); - } + delete pTask; pTag->onTaskWorkerDone(); } } |