summaryrefslogtreecommitdiff
path: root/scripting/source/vbaevents
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-16 15:37:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-17 08:18:51 +0200
commitf41a55474cb6217560af81ae99c3e2fe1aca5215 (patch)
tree703ddebaa16e967ff0529b0bfe8667661a6abae7 /scripting/source/vbaevents
parentc77a1e1c039c863e6fdb47b92ce315b87fc73d0d (diff)
loplugin:logexceptionnicely in scripting..sdext
Change-Id: Ib08f41bb0bed494e7ed00f5bae92eae2b8e80d93 Reviewed-on: https://gerrit.libreoffice.org/74113 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/vbaevents')
-rw-r--r--scripting/source/vbaevents/eventhelper.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx
index 21a52e9b28c4..8388450aa2b2 100644
--- a/scripting/source/vbaevents/eventhelper.cxx
+++ b/scripting/source/vbaevents/eventhelper.cxx
@@ -23,6 +23,7 @@
#include <comphelper/uno3.hxx>
#include <comphelper/proparrhlp.hxx>
#include <comphelper/propertycontainer.hxx>
+#include <tools/diagnose_ex.h>
#include <ooo/vba/XVBAToOOEventDescGen.hpp>
@@ -909,9 +910,9 @@ EventListener::firing_Impl(const ScriptEvent& evt, Any* pRet )
ooo::vba::executeMacro( mpShell, url, aArguments, aRet, aDummyCaller );
}
}
- catch ( uno::Exception& e )
+ catch ( const uno::Exception& )
{
- SAL_WARN("scripting", "event script raised " << e );
+ TOOLS_WARN_EXCEPTION("scripting", "event script raised" );
}
}
}