summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 13:13:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-15 19:58:07 +0200
commit48f62672abd1c594c2c4132c36ae80ffe346ae8b (patch)
treeac6e92c6d886f7575cde0a52c0c3c9dde673cccb /reportdesign
parent8d234284d0ec0393e8d9d5057f68f48f33bc8d9d (diff)
loplugin:logexceptionnicely in package..reportdesign
Change-Id: Ib5438d346fa95299848aaf2144e54f5551c0a906 Reviewed-on: https://gerrit.libreoffice.org/74100 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx7
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx4
2 files changed, 5 insertions, 6 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index 3240c017d007..5e97042ec818 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -57,6 +57,7 @@
#include <xmloff/DocumentSettingsContext.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlmetai.hxx>
+#include <tools/diagnose_ex.h>
#include <com/sun/star/util/XModifiable.hpp>
#include <svtools/sfxecode.hxx>
#include "xmlEnums.hxx"
@@ -150,11 +151,9 @@ static ErrCode ReadThroughComponent(
{
xParser->parseStream( aParserInput );
}
- catch (const SAXParseException& r)
+ catch (const SAXParseException&)
{
- SAL_WARN( "reportdesign", "SAX parse exception caught while importing: "
- << r << " "
- << r.LineNumber << ',' << r.ColumnNumber );
+ TOOLS_WARN_EXCEPTION( "reportdesign", "SAX parse exception caught while importing");
return ErrCode(1);
}
catch (const SAXException&)
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 42ab6c415021..6023758ded55 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -4172,9 +4172,9 @@ bool OReportController::impl_setPropertyAtControls_throw(const char* pUndoResId,
{
xControlModel->setPropertyValue(_sProperty,_aValue);
}
- catch(const UnknownPropertyException& e)
+ catch(const UnknownPropertyException&)
{
- SAL_WARN("reportdesign", "UnknownPropertyException:" << e);
+ TOOLS_WARN_EXCEPTION("reportdesign", "");
}
}