diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-17 08:22:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 08:06:33 +0200 |
commit | 129e799e1acf25d7dcd7ccf0438896cc125e7653 (patch) | |
tree | 7a04097e0a119bb56d68ad284c9ccb7e29d71898 /svtools/source/control/inettbc.cxx | |
parent | 8a453f96f0181b1eae227ebdadea6ee458d53eb4 (diff) |
loplugin:logexceptionnicely in svtools
Change-Id: I631f3750af2e9a26d0a034f5a22d5b0c2910325c
Reviewed-on: https://gerrit.libreoffice.org/74142
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index e740a79e6584..a2ef57c6116a 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -23,6 +23,7 @@ #endif #include <svtools/inettbc.hxx> +#include <tools/diagnose_ex.h> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/beans/Property.hpp> @@ -967,8 +968,8 @@ void SvtMatchContext_Impl::doExecute() if (proc2.is()) { try { proc2->releaseCommandIdentifier(id); - } catch (css::uno::RuntimeException & e) { - SAL_WARN("svtools.control", "ignoring " << e); + } catch (css::uno::RuntimeException &) { + TOOLS_WARN_EXCEPTION("svtools.control", "ignoring"); } } throw; @@ -991,8 +992,8 @@ void SvtMatchContext_Impl::doExecute() css::uno::Reference< css::sdbc::XRow > row( res, css::uno::UNO_QUERY_THROW); folder = row->getBoolean(1) && !row->wasNull(); - } catch (css::uno::Exception & e) { - SAL_WARN("svtools.control", "ignoring " << e); + } catch (css::uno::Exception &) { + TOOLS_WARN_EXCEPTION("svtools.control", "ignoring"); return; } } @@ -1215,8 +1216,8 @@ void MatchContext_Impl::doExecute() if (proc2.is()) { try { proc2->releaseCommandIdentifier(id); - } catch (css::uno::RuntimeException & e) { - SAL_WARN("svtools.control", "ignoring " << e); + } catch (css::uno::RuntimeException &) { + TOOLS_WARN_EXCEPTION("svtools.control", "ignoring"); } } throw; @@ -1239,8 +1240,8 @@ void MatchContext_Impl::doExecute() css::uno::Reference< css::sdbc::XRow > row( res, css::uno::UNO_QUERY_THROW); folder = row->getBoolean(1) && !row->wasNull(); - } catch (css::uno::Exception & e) { - SAL_WARN("svtools.control", "ignoring " << e); + } catch (css::uno::Exception &) { + TOOLS_WARN_EXCEPTION("svtools.control", "ignoring"); return; } } |