summaryrefslogtreecommitdiff
path: root/svx/source/inc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-10-04 23:28:23 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-10-05 09:49:05 +0200
commit9abb853f0ae74b34ee7c5fb6a34b72a037bb317e (patch)
tree65871e440423b653b1e355d871e70e6c8e88dd17 /svx/source/inc
parent83615f4ee8c5e78fb45389b5ea3c1204625e3fe2 (diff)
use more TOOLS_WARN_EXCEPTION
Change-Id: I3e8bfdf717dd8896ab16e396f671651ca4f7f01c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103932 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/inc')
-rw-r--r--svx/source/inc/fmshimp.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx
index b36ff93b8cfd..0c30e1b8819d 100644
--- a/svx/source/inc/fmshimp.hxx
+++ b/svx/source/inc/fmshimp.hxx
@@ -34,6 +34,7 @@
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/beans/PropertyChangeEvent.hpp>
#include <com/sun/star/form/runtime/FeatureState.hpp>
+#include <tools/diagnose_ex.h>
#include <vcl/timer.hxx>
#include <vcl/window.hxx>
#include <sfx2/shell.hxx>
@@ -56,7 +57,7 @@
typedef std::vector< css::uno::Reference< css::form::XForm > > FmFormArray;
// catch database exceptions if they occur
-#define DO_SAFE(statement) try { statement; } catch( const Exception& ) { OSL_FAIL("unhandled exception (I tried to move a cursor (or something like that).)"); }
+#define DO_SAFE(statement) try { statement; } catch( const Exception& ) { TOOLS_WARN_EXCEPTION("svx", "unhandled exception (I tried to move a cursor (or something like that).)"); }
enum class LoopGridsSync {
DISABLE_SYNC = 1,