diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-03 11:56:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-03 14:54:55 +0200 |
commit | 0e493cae407cca65f58329b3319d9c836cdf5096 (patch) | |
tree | 97e90d58ea005ec20b0197f2c1663ae6275cbd4e /svx/source/fmcomp | |
parent | b76037f44660808a978ff39864769a5621eab893 (diff) |
new loplugin:dbgunhandledexception
enforce that DBG_UNHANDLED_EXCEPTION is called first in a catch block,
otherwise it cannot do it's job properly
Change-Id: I906436c6861212c44f8f21552ccbceb54f15c6e1
Reviewed-on: https://gerrit.libreoffice.org/52303
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index d5edb7c1ff5f..feb3c3fb9b23 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -1094,8 +1094,8 @@ void DbTextField::Init( vcl::Window& rParent, const Reference< XRowSet >& xCurso } catch( const Exception& ) { - OSL_FAIL( "DbTextField::Init: caught an exception while determining the multi-line capabilities!" ); DBG_UNHANDLED_EXCEPTION("svx"); + OSL_FAIL( "DbTextField::Init: caught an exception while determining the multi-line capabilities!" ); } m_bIsSimpleEdit = !bIsMultiLine; diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index ba4cff36d95e..8093bddd31b9 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2440,8 +2440,8 @@ bool DbGridControl::SeekCursor(long nRow, bool bAbsolute) } catch(Exception&) { - OSL_FAIL("DbGridControl::SeekCursor : failed ..."); DBG_UNHANDLED_EXCEPTION("svx"); + OSL_FAIL("DbGridControl::SeekCursor : failed ..."); m_nSeekPos = -1; // no further data set available } } |