From a2e4b76e29e491bac4f9e6dfd9929dfd49a4b05e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 09:33:28 +0200 Subject: loplugin:logexceptionnicely in vcl Change-Id: I0ed575a11c84c2e8aabfa1b4204ba6ae27393d5f Reviewed-on: https://gerrit.libreoffice.org/74245 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/image/ImplImageTree.cxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'vcl/source/image/ImplImageTree.cxx') diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index d879759b5486..e1bf651e5b02 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -256,9 +257,9 @@ OUString ImplImageTree::getImageUrl(OUString const & rName, OUString const & rSt } } } - catch (const uno::Exception & e) + catch (const uno::Exception &) { - SAL_INFO("vcl", e); + TOOLS_INFO_EXCEPTION("vcl", ""); } aStyle = fallbackStyle(aStyle); @@ -296,9 +297,9 @@ std::shared_ptr ImplImageTree::getImageStream(OUString const & r } } } - catch (const uno::Exception & e) + catch (const uno::Exception &) { - SAL_INFO("vcl", e); + TOOLS_INFO_EXCEPTION("vcl", ""); } aStyle = fallbackStyle(aStyle); @@ -413,9 +414,9 @@ bool ImplImageTree::doLoadImage(ImageRequestParameters& rParameters) { throw; } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_INFO("vcl", "ImplImageTree::doLoadImage exception: " << e); + TOOLS_INFO_EXCEPTION("vcl", "ImplImageTree::doLoadImage"); } if (bFound) @@ -681,9 +682,9 @@ bool ImplImageTree::checkPathAccess() { throw; } - catch (const uno::Exception & e) + catch (const uno::Exception &) { - SAL_INFO("vcl", "ImplImageTree::zip file location " << e << " for " << rIconSet.maURL); + TOOLS_INFO_EXCEPTION("vcl", "ImplImageTree::zip file location " << rIconSet.maURL); return false; } return rNameAccess.is(); -- cgit v1.2.3