diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-15 13:11:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-16 08:55:07 +0200 |
commit | 7508c1d1e701dba8cb67414be59193d9672b66ab (patch) | |
tree | 5f37eecd6486a223f26b882ca8697fb9afecb9cc /filter/source/config | |
parent | cf4059d59752de6e9a6eca59b388beef27bcd7e6 (diff) |
loplugin:logexceptionnicely in filter..framework
Change-Id: I8cf70ee278c641767e3fcfcfd151d99d791b3468
Reviewed-on: https://gerrit.libreoffice.org/74098
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/config')
-rw-r--r-- | filter/source/config/cache/filtercache.cxx | 5 | ||||
-rw-r--r-- | filter/source/config/cache/typedetection.cxx | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx index a1ae51b1f04c..251695ca738a 100644 --- a/filter/source/config/cache/filtercache.cxx +++ b/filter/source/config/cache/filtercache.cxx @@ -19,6 +19,7 @@ #include <memory> +#include <tools/diagnose_ex.h> #include "filtercache.hxx" #include "constant.hxx" #include "cacheupdatelistener.hxx" @@ -860,9 +861,9 @@ css::uno::Any FilterCache::impl_getDirectCFGValue(const OUString& sDirectKey) } catch(const css::uno::RuntimeException&) { throw; } - catch(const css::uno::Exception& ex) + catch(const css::uno::Exception&) { - SAL_WARN( "filter.config", ex); + TOOLS_WARN_EXCEPTION( "filter.config", ""); aValue.clear(); } diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index 60b68f4592c6..06aa7ae565f4 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -32,6 +32,7 @@ #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> #include <framework/interaction.hxx> +#include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <comphelper/fileurl.hxx> #include <comphelper/processfactory.hxx> @@ -448,10 +449,9 @@ OUString SAL_CALL TypeDetection::queryTypeByDescriptor(css::uno::Sequence< css:: { throw; } - catch(const css::uno::Exception& e) + catch(const css::uno::Exception&) { - SAL_WARN("filter.config", "caught " << e - << " while querying type of " << sURL); + TOOLS_WARN_EXCEPTION("filter.config", "caught exception while querying type of " << sURL); sType.clear(); } |