summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/GraphicImport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 15:37:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 20:03:33 +0200
commit697f8edbb0154ed72a42e4e8d7c4942cfe7dd59d (patch)
tree08ee9affc2b08b1d7fe4b9d5c96f192289531a8a /writerfilter/source/dmapper/GraphicImport.cxx
parent351b9aefe3de7c68e907fdc7926d9b508560320e (diff)
loplugin:logexceptionnicely in writerfilter
Change-Id: Ie01d0e6af6af0cfeb46cdde38f52ab068b64db6b Reviewed-on: https://gerrit.libreoffice.org/74284 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/dmapper/GraphicImport.cxx')
-rw-r--r--writerfilter/source/dmapper/GraphicImport.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index d5d09a90dcbb..bf80052e33dd 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -49,6 +49,7 @@
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <rtl/math.hxx>
+#include <tools/diagnose_ex.h>
#include <comphelper/string.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/sequence.hxx>
@@ -377,9 +378,9 @@ public:
xGraphicObjectProperties->setPropertyValue(getPropertyName( PROP_TITLE ),
uno::makeAny( title ));
}
- catch( const uno::Exception& e )
+ catch( const uno::Exception& )
{
- SAL_WARN("writerfilter", "failed. Message :" << e);
+ TOOLS_WARN_EXCEPTION("writerfilter", "failed");
}
}
@@ -1387,9 +1388,9 @@ uno::Reference<text::XTextContent> GraphicImport::createGraphicObject(uno::Refer
}
}
}
- catch( const uno::Exception& e )
+ catch( const uno::Exception& )
{
- SAL_WARN("writerfilter", "failed. Message :" << e);
+ TOOLS_WARN_EXCEPTION("writerfilter", "");
}
return xGraphicObject;
}