summaryrefslogtreecommitdiff
path: root/vcl/source/image/ImplImageTree.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:33:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 10:46:40 +0200
commita2e4b76e29e491bac4f9e6dfd9929dfd49a4b05e (patch)
treeadc41305c2e5dc94631d81f6b027464d1a15358f /vcl/source/image/ImplImageTree.cxx
parent70accc2904edb5c4aa9b5acb7ff2889a77717b75 (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/source/image/ImplImageTree.cxx')
-rw-r--r--vcl/source/image/ImplImageTree.cxx17
1 files changed, 9 insertions, 8 deletions
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 <rtl/bootstrap.hxx>
#include <rtl/uri.hxx>
+#include <tools/diagnose_ex.h>
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <implimagetree.hxx>
@@ -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<SvMemoryStream> 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();