summaryrefslogtreecommitdiff
path: root/svtools/source/contnr
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-17 08:22:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 08:06:33 +0200
commit129e799e1acf25d7dcd7ccf0438896cc125e7653 (patch)
tree7a04097e0a119bb56d68ad284c9ccb7e29d71898 /svtools/source/contnr
parent8a453f96f0181b1eae227ebdadea6ee458d53eb4 (diff)
loplugin:logexceptionnicely in svtools
Change-Id: I631f3750af2e9a26d0a034f5a22d5b0c2910325c Reviewed-on: https://gerrit.libreoffice.org/74142 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r--svtools/source/contnr/DocumentInfoPreview.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/contnr/DocumentInfoPreview.cxx b/svtools/source/contnr/DocumentInfoPreview.cxx
index a34030701f98..c853084e4e0e 100644
--- a/svtools/source/contnr/DocumentInfoPreview.cxx
+++ b/svtools/source/contnr/DocumentInfoPreview.cxx
@@ -38,6 +38,7 @@
#include <vcl/svapp.hxx>
#include <vcl/builderfactory.hxx>
#include <tools/datetime.hxx>
+#include <tools/diagnose_ex.h>
#include <tools/urlobj.hxx>
#include <unotools/ucbhelper.hxx>
#include <unotools/localedatawrapper.hxx>
@@ -113,8 +114,8 @@ void ODocumentInfoPreview::fill(
try {
value = conv->convertToSimpleType(aAny, css::uno::TypeClass_STRING).
get< OUString >();
- } catch (css::script::CannotConvertException & e) {
- SAL_INFO("svtools.contnr", "ignored " << e);
+ } catch (css::script::CannotConvertException &) {
+ TOOLS_INFO_EXCEPTION("svtools.contnr", "ignored");
}
if (!value.isEmpty()) {
insertEntry(name, value);