Kaydet (Commit) 6a49f78b authored tarafından Caolán McNamara's avatar Caolán McNamara

silence coverity#1421122 Uncaught exception

Change-Id: I371951b0e5a0f8c6fe796ff94dc60e07944c3f0f
Reviewed-on: https://gerrit.libreoffice.org/45758Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst fc26ea9e
...@@ -28,9 +28,18 @@ public: ...@@ -28,9 +28,18 @@ public:
private: private:
virtual ~Protector() override { virtual ~Protector() override {
DeInitVCL(); #if defined(__COVERITY__)
// for the 6 tests that use it try {
comphelper::ThreadPool::getSharedOptimalPool().shutdown(); #endif
DeInitVCL();
// for the 6 tests that use it
comphelper::ThreadPool::getSharedOptimalPool().shutdown();
#if defined(__COVERITY__)
} catch (const std::exception& e) {
SAL_WARN("vcl.app", "Fatal exception: " << e.what());
std::terminate();
}
#endif
} }
virtual bool protect( virtual bool protect(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment