From f41a55474cb6217560af81ae99c3e2fe1aca5215 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 16 Jun 2019 15:37:37 +0200 Subject: loplugin:logexceptionnicely in scripting..sdext Change-Id: Ib08f41bb0bed494e7ed00f5bae92eae2b8e80d93 Reviewed-on: https://gerrit.libreoffice.org/74113 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scripting/source/protocolhandler/scripthandler.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'scripting/source/protocolhandler') diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 07c4353893d6..dff0f3513e4b 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -158,12 +158,11 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( { xListener->dispatchFinished( aEvent ) ; } - catch(RuntimeException & e) + catch(const RuntimeException &) { - SAL_WARN("scripting", + TOOLS_WARN_EXCEPTION("scripting", "ScriptProtocolHandler::dispatchWithNotification: caught RuntimeException" - "while dispatchFinished with failure of the execution " - << e ); + "while dispatchFinished with failure of the execution"); } } return; @@ -285,11 +284,11 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( { xListener->dispatchFinished( aEvent ) ; } - catch(const RuntimeException & e) + catch(const RuntimeException &) { - SAL_WARN("scripting", + TOOLS_WARN_EXCEPTION("scripting", "ScriptProtocolHandler::dispatchWithNotification: caught RuntimeException" - "while dispatchFinished " << e ); + "while dispatchFinished" ); } } } -- cgit v1.2.3