diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 09:33:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 10:46:40 +0200 |
commit | a2e4b76e29e491bac4f9e6dfd9929dfd49a4b05e (patch) | |
tree | adc41305c2e5dc94631d81f6b027464d1a15358f /vcl/workben | |
parent | 70accc2904edb5c4aa9b5acb7ff2889a77717b75 (diff) |
loplugin:logexceptionnicely in vcl
Change-Id: I0ed575a11c84c2e8aabfa1b4204ba6ae27393d5f
Reviewed-on: https://gerrit.libreoffice.org/74245
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/mtfdemo.cxx | 5 | ||||
-rw-r--r-- | vcl/workben/outdevgrind.cxx | 5 | ||||
-rw-r--r-- | vcl/workben/svdem.cxx | 5 | ||||
-rw-r--r-- | vcl/workben/svpclient.cxx | 3 | ||||
-rw-r--r-- | vcl/workben/svptest.cxx | 5 | ||||
-rw-r--r-- | vcl/workben/vcldemo.cxx | 5 |
6 files changed, 17 insertions, 11 deletions
diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx index 7addd2bc54a3..0ee726e051f8 100644 --- a/vcl/workben/mtfdemo.cxx +++ b/vcl/workben/mtfdemo.cxx @@ -19,6 +19,7 @@ #include <vcl/gdimtf.hxx> #include <vcl/wmf.hxx> +#include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <tools/stream.hxx> #include <tools/vcompat.hxx> @@ -91,9 +92,9 @@ public: Application::Execute(); } - catch (const css::uno::Exception& e) + catch (const css::uno::Exception&) { - SAL_WARN("vcl.app", "Fatal: " << e); + TOOLS_WARN_EXCEPTION("vcl.app", "Fatal"); return 1; } catch (const std::exception& e) diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx index ac6f12aaa373..8283a5e59da2 100644 --- a/vcl/workben/outdevgrind.cxx +++ b/vcl/workben/outdevgrind.cxx @@ -19,6 +19,7 @@ #include <sal/main.h> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <tools/extendapplicationenvironment.hxx> #include <cppuhelper/bootstrap.hxx> @@ -731,9 +732,9 @@ SAL_IMPLEMENT_MAIN() DeInitVCL(); } - catch (const css::uno::Exception& e) + catch (const css::uno::Exception&) { - SAL_WARN("vcl.app", "Fatal: " << e); + TOOLS_WARN_EXCEPTION("vcl.app", "Fatal"); return EXIT_FAILURE; } catch (const std::exception& e) diff --git a/vcl/workben/svdem.cxx b/vcl/workben/svdem.cxx index 579141839cc4..dd9027a81be5 100644 --- a/vcl/workben/svdem.cxx +++ b/vcl/workben/svdem.cxx @@ -19,6 +19,7 @@ #include <sal/main.h> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <tools/extendapplicationenvironment.hxx> #include <cppuhelper/bootstrap.hxx> @@ -57,9 +58,9 @@ SAL_IMPLEMENT_MAIN() ::Main(); DeInitVCL(); } - catch (const Exception& e) + catch (const Exception&) { - SAL_WARN("vcl.app", "Fatal: " << e); + TOOLS_WARN_EXCEPTION("vcl.app", "Fatal"); return 1; } catch (const std::exception &e) diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx index 1b78996642e7..9ffdbcb38f2c 100644 --- a/vcl/workben/svpclient.cxx +++ b/vcl/workben/svpclient.cxx @@ -36,6 +36,7 @@ #include <vcl/bitmapex.hxx> #include <vcl/graphicfilter.hxx> #include <vcl/graph.hxx> +#include <tools/diagnose_ex.h> #include <tools/extendapplicationenvironment.hxx> #include <tools/stream.hxx> @@ -79,7 +80,7 @@ SAL_IMPLEMENT_MAIN() } catch (const Exception& e) { - SAL_WARN("vcl", "Fatal: " << e); + TOOLS_WARN_EXCEPTION("vcl", "Fatal"); return 1; } catch (const std::exception& e) diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx index e2425807a8e9..a79cda4df507 100644 --- a/vcl/workben/svptest.cxx +++ b/vcl/workben/svptest.cxx @@ -19,6 +19,7 @@ #include <sal/main.h> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <tools/extendapplicationenvironment.hxx> #include <cppuhelper/bootstrap.hxx> @@ -67,9 +68,9 @@ SAL_IMPLEMENT_MAIN() ::Main(); DeInitVCL(); } - catch (const Exception& e) + catch (const Exception&) { - SAL_WARN("vcl.app", "Fatal: " << e); + TOOLS_WARN_EXCEPTION("vcl.app", "Fatal"); return 1; } catch (const std::exception &e) diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index befde4053660..3685e905a1ec 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -31,6 +31,7 @@ #include <vcl/ptrstyle.hxx> #include <salhelper/thread.hxx> +#include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <tools/stream.hxx> #include <vcl/svapp.hxx> @@ -2376,9 +2377,9 @@ public: xWidgets.disposeAndClear(); xPopup.disposeAndClear(); } - catch (const css::uno::Exception& e) + catch (const css::uno::Exception&) { - SAL_WARN("vcl.app", "Fatal: " << e); + TOOLS_WARN_EXCEPTION("vcl.app", "Fatal"); return 1; } catch (const std::exception& e) |