summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-05 16:20:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-09 08:46:34 +0200
commit48fbfe38f60de731ff8bec0372179bedd6670af4 (patch)
tree2a1bbc4a2207d049d38c058d7f4ebb06a4f01182 /toolkit
parent115a8539038ecdd5e496fb6c84101c5b14d11068 (diff)
use more DBG_UNHANDLED_EXCEPTION
so we get nice logs of the exception dynamic type for UNO exceptions. Change-Id: Ic0b10dc14d354a2c9a0591b3a51d2f1640d54bdb Reviewed-on: https://gerrit.libreoffice.org/52465 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 7e528ef1f94d..57f18a22ad45 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -121,6 +121,7 @@
#endif
#include <toolkit/awt/vclxspinbutton.hxx>
#include <tools/debug.hxx>
+#include <tools/diagnose_ex.h>
#include <comphelper/processfactory.hxx>
#include <toolkit/awt/scrollabledialog.hxx>
#include <comphelper/profilezone.hxx>
@@ -1689,10 +1690,10 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::createSystemChild( con
{
pChildWindow.reset( VclPtr<WorkWindow>::Create( &aParentData ) );
}
- catch ( const css::uno::RuntimeException & rEx )
+ catch ( const css::uno::RuntimeException & )
{
// system child window could not be created
- SAL_WARN("toolkit", "caught " << rEx);
+ DBG_UNHANDLED_EXCEPTION("toolkit");
pChildWindow.clear();
}
}
@@ -2085,9 +2086,9 @@ void VCLXToolkit::callTopWindowListeners(
{
(xListener.get()->*pFn)(aAwtEvent);
}
- catch (const css::uno::RuntimeException & rEx)
+ catch (const css::uno::RuntimeException &)
{
- SAL_WARN("toolkit", "caught " << rEx);
+ DBG_UNHANDLED_EXCEPTION("toolkit");
}
}
}
@@ -2130,9 +2131,9 @@ bool VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
: xHandler->keyReleased(aAwtEvent))
return true;
}
- catch (const css::uno::RuntimeException & rEx)
+ catch (const css::uno::RuntimeException &)
{
- SAL_WARN("toolkit", "caught " << rEx);
+ DBG_UNHANDLED_EXCEPTION("toolkit");
}
}
}
@@ -2176,9 +2177,9 @@ void VCLXToolkit::callFocusListeners(::VclSimpleEvent const * pEvent,
bGained ? xListener->focusGained(aAwtEvent)
: xListener->focusLost(aAwtEvent);
}
- catch (const css::uno::RuntimeException & rEx)
+ catch (const css::uno::RuntimeException &)
{
- SAL_WARN("toolkit", "caught " << rEx);
+ DBG_UNHANDLED_EXCEPTION("toolkit");
}
}
}