summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/OLEHandler.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/OLEHandler.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/OLEHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/OLEHandler.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/writerfilter/source/dmapper/OLEHandler.cxx b/writerfilter/source/dmapper/OLEHandler.cxx
index 8eb6fddeb303..c59e041b28a4 100644
--- a/writerfilter/source/dmapper/OLEHandler.cxx
+++ b/writerfilter/source/dmapper/OLEHandler.cxx
@@ -27,6 +27,7 @@
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
#include <unotools/mediadescriptor.hxx>
#include <officecfg/Office/Common.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -124,9 +125,9 @@ void OLEHandler::lcl_attribute(Id rName, Value & rVal)
xShapeProps->getPropertyValue( getPropertyName( PROP_BITMAP ) ) >>= m_xReplacement;
}
- catch( const uno::Exception& e )
+ catch( const uno::Exception& )
{
- SAL_WARN("writerfilter", "Exception in OLE Handler: " << e);
+ TOOLS_WARN_EXCEPTION("writerfilter", "Exception in OLE Handler");
}
// No need to set the wrapping here as it's either set in oox or will be set later
}
@@ -175,9 +176,9 @@ void OLEHandler::lcl_sprm(Sprm & rSprm)
if( m_rDomainMapper.IsInHeaderFooter() )
xShapeProps->setPropertyValue("Opaque", uno::makeAny(m_nWrapMode != text::WrapTextMode_THROUGH));
}
- catch( const uno::Exception& e )
+ catch( const uno::Exception& )
{
- SAL_WARN("writerfilter", "Exception in OLE Handler: " << e);
+ TOOLS_WARN_EXCEPTION("writerfilter", "Exception in OLE Handler");
}
}
}