summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/elementlist.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:33:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 10:31:43 +0200
commit70accc2904edb5c4aa9b5acb7ff2889a77717b75 (patch)
treef6b8aa6e318694b8fe81b40abcf115e4fe54230f /unoxml/source/dom/elementlist.cxx
parentb8775ff8961dbe589799ac7f59427a8e5d07ac72 (diff)
loplugin:logexceptionnicely in toolkit..unoxml
Change-Id: I0a3126545f9ef98640f6dd166290e9b9e91b8355 Reviewed-on: https://gerrit.libreoffice.org/74244 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml/source/dom/elementlist.cxx')
-rw-r--r--unoxml/source/dom/elementlist.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index 6d47e55c023d..11afe2a14a16 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -24,6 +24,7 @@
#include <cppuhelper/implbase.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include "element.hxx"
#include "document.hxx"
@@ -107,8 +108,8 @@ namespace DOM
static_cast<XElement*>(& rElement), UNO_QUERY_THROW);
m_xEventListener = new WeakEventListener(this);
xTarget->addEventListener("DOMSubtreeModified", m_xEventListener, false/*capture*/);
- } catch (const Exception &e){
- SAL_WARN( "unoxml", "Exception caught while registering NodeList as listener: " << e);
+ } catch (const Exception &){
+ TOOLS_WARN_EXCEPTION( "unoxml", "Exception caught while registering NodeList as listener");
}
}