From a4a71214d69ce2ef3f1e8dbbf17362ce50e55a45 Mon Sep 17 00:00:00 2001 From: lbenes Date: Fri, 29 Jul 2016 19:40:56 -0400 Subject: 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 Reviewed-by: Noel Grandin --- comphelper/source/misc/threadpool.cxx | 12 +----------- 1 file changed, 1 insertion(+), 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(); } } -- cgit