diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 09:32:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 11:33:03 +0200 |
commit | 399edcb0bca8e1cfc55ca68237cdb470bcc54932 (patch) | |
tree | e836d1094bb43291549b6a7ba3915ed2ef98beab /sw/source/filter/rtf | |
parent | 7d9ff70206dbd75a7751515b642fbbbc8878c159 (diff) |
loplugin:logexceptionnicely in sw
Change-Id: I92c84f5c869e5ccab344f7e3591d68a90a20eefa
Reviewed-on: https://gerrit.libreoffice.org/74243
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/rtf')
-rw-r--r-- | sw/source/filter/rtf/swparrtf.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index e987b4488567..bd333ea0d565 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -32,6 +32,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/propertysequence.hxx> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/document/XImporter.hpp> @@ -99,9 +100,9 @@ ErrCode SwRTFReader::Read(SwDoc& rDoc, const OUString& /*rBaseURL*/, SwPaM& rPam { xFilter->filter(aDescriptor); } - catch (uno::Exception const& e) + catch (uno::Exception const&) { - SAL_WARN("sw.rtf", "SwRTFReader::Read(): " << e); + TOOLS_WARN_EXCEPTION("sw.rtf", "SwRTFReader::Read()"); ret = ERR_SWG_READ_ERROR; } |