summaryrefslogtreecommitdiff
path: root/sfx2/source
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 /sfx2/source
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 'sfx2/source')
-rw-r--r--sfx2/source/sidebar/PanelTitleBar.cxx5
-rw-r--r--sfx2/source/sidebar/Theme.cxx5
2 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx
index 59878135319f..ce5a3683fb88 100644
--- a/sfx2/source/sidebar/PanelTitleBar.cxx
+++ b/sfx2/source/sidebar/PanelTitleBar.cxx
@@ -29,6 +29,7 @@
#include <vcl/gradient.hxx>
#include <vcl/image.hxx>
#include <toolkit/helper/vclunohelper.hxx>
+#include <tools/diagnose_ex.h>
using namespace css;
using namespace css::uno;
@@ -146,9 +147,9 @@ void PanelTitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex)
if (xDispatch.is())
xDispatch->dispatch(aURL, Sequence<beans::PropertyValue>());
}
- catch(Exception& rException)
+ catch(Exception const &)
{
- SAL_WARN("sfx", "caught " << rException);
+ DBG_UNHANDLED_EXCEPTION("sfx");
}
}
}
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 44bff100e34d..e793c4c77e00 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -25,6 +25,7 @@
#include <tools/svborder.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
+#include <tools/diagnose_ex.h>
using namespace css;
using namespace css::uno;
@@ -335,9 +336,9 @@ void Theme::UpdateTheme()
maPropertyIdToNameMap[Rect_ToolBoxBorder],
Any(awt::Rectangle(1,1,1,1)));
}
- catch(beans::UnknownPropertyException& rException)
+ catch(beans::UnknownPropertyException const &)
{
- SAL_WARN("sfx", "unknown property: " << rException);
+ DBG_UNHANDLED_EXCEPTION("sfx", "unknown property");
OSL_ASSERT(false);
}
}