summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:32:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 11:33:03 +0200
commit399edcb0bca8e1cfc55ca68237cdb470bcc54932 (patch)
treee836d1094bb43291549b6a7ba3915ed2ef98beab /sw/source/ui
parent7d9ff70206dbd75a7751515b642fbbbc8878c159 (diff)
loplugin:logexceptionnicely in sw
Change-Id: I92c84f5c869e5ccab344f7e3591d68a90a20eefa Reviewed-on: https://gerrit.libreoffice.org/74243 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx5
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx3
2 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 3bb59af15849..d5f925903836 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -45,6 +45,7 @@
#include <editeng/langitem.hxx>
#include <svl/numuno.hxx>
#include <svl/stritem.hxx>
+#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
#include <vcl/mnemonic.hxx>
#include <svl/style.hxx>
@@ -1118,9 +1119,9 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
}
}
}
- catch (const Exception& rExcept)
+ catch (const Exception&)
{
- SAL_WARN("sw", rExcept);
+ TOOLS_WARN_EXCEPTION("sw", "");
}
}
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index b5bec37c60d6..fd6c919b2472 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -36,6 +36,7 @@
#include <com/sun/star/sdb/XColumn.hpp>
#include <comphelper/string.hxx>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include <vector>
#include <globals.hrc>
@@ -179,7 +180,7 @@ IMPL_LINK_NOARG(SwMailMergeAddressBlockPage, AddressListHdl_Impl, Button*, void)
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw", e);
+ TOOLS_WARN_EXCEPTION("sw", "");
std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(),
VclMessageType::Warning, VclButtonsType::Ok, e.Message));
xBox->run();