From 697f8edbb0154ed72a42e4e8d7c4942cfe7dd59d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 15:37:40 +0200 Subject: loplugin:logexceptionnicely in writerfilter Change-Id: Ie01d0e6af6af0cfeb46cdde38f52ab068b64db6b Reviewed-on: https://gerrit.libreoffice.org/74284 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx') diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 43463dabc152..b829c8aa9fd2 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -3161,10 +3162,9 @@ RTFError RTFDocumentImpl::popState() xDocumentPropertyContainer->addProperty( rKey, beans::PropertyAttribute::REMOVABLE, aValue); } - catch (const uno::Exception& rException) + catch (const uno::Exception&) { - SAL_WARN("writerfilter.rtf", - "failed to set property " << rKey << ": " << rException); + TOOLS_WARN_EXCEPTION("writerfilter.rtf", "failed to set property " << rKey); } } } -- cgit v1.2.1