summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 15:37:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 20:03:33 +0200
commit697f8edbb0154ed72a42e4e8d7c4942cfe7dd59d (patch)
tree08ee9affc2b08b1d7fe4b9d5c96f192289531a8a /writerfilter/source/dmapper/DomainMapperTableHandler.cxx
parent351b9aefe3de7c68e907fdc7926d9b508560320e (diff)
loplugin:logexceptionnicely in writerfilter
Change-Id: Ie01d0e6af6af0cfeb46cdde38f52ab068b64db6b Reviewed-on: https://gerrit.libreoffice.org/74284 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableHandler.cxx')
-rw-r--r--writerfilter/source/dmapper/DomainMapperTableHandler.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
index 27a710f5a0b6..f1ca99fc77bf 100644
--- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
@@ -35,6 +35,7 @@
#include "util.hxx"
#include <osl/diagnose.h>
#include <sal/log.hxx>
+#include <tools/diagnose_ex.h>
#include <comphelper/sequence.hxx>
#ifdef DBG_UTIL
@@ -915,9 +916,9 @@ static bool lcl_emptyRow(std::vector<RowSequence_t>& rTableRanges, sal_Int32 nRo
if (bRangesAreNotEqual)
return false;
}
- catch (const lang::IllegalArgumentException& e)
+ catch (const lang::IllegalArgumentException&)
{
- SAL_WARN( "writerfilter.dmapper", "compareRegionStarts() failed: " << e);
+ TOOLS_WARN_EXCEPTION( "writerfilter.dmapper", "compareRegionStarts() failed");
return false;
}
return true;
@@ -1102,18 +1103,16 @@ void DomainMapperTableHandler::endTable(unsigned int nestedTableLevel, bool bTab
}
}
}
- catch ( const lang::IllegalArgumentException &e )
+ catch ( const lang::IllegalArgumentException & )
{
- SAL_INFO("writerfilter.dmapper",
- "Conversion to table error: " << e);
+ TOOLS_INFO_EXCEPTION("writerfilter.dmapper", "Conversion to table error");
#ifdef DBG_UTIL
TagLogger::getInstance().chars(std::string("failed to import table!"));
#endif
}
- catch ( const uno::Exception &e )
+ catch ( const uno::Exception & )
{
- SAL_INFO("writerfilter.dmapper",
- "Exception during table creation: " << e);
+ TOOLS_INFO_EXCEPTION("writerfilter.dmapper", "Exception during table creation");
}
// If we have a table with a start and an end position, we should make it a floating one.