diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-02 16:27:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-03 08:13:29 +0200 |
commit | 547b1d054162a73d49a828bed140ab8671da2ff8 (patch) | |
tree | d1e2f14c39440d678ba27cb5bd52ab91e8e499d0 /sw | |
parent | 1f40a488fcf95f90fdd18c41ef7041d475cf08a2 (diff) |
use more TOOLS_WARN_EXCEPTION
Change-Id: I8b5cde993c13e0b7c8c830b1ff698933a6b7cfd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103863
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 3b38b63871c4..8dfbf6689566 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -36,6 +36,7 @@ #include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/supportsservice.hxx> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <cmdid.h> #include <unotextbodyhf.hxx> @@ -2075,10 +2076,9 @@ lcl_ApplyCellProperties( { xCellPS->setPropertyValue(rName, rValue); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN( "sw.uno", "Exception when getting PropertyState: " - + rName + ". Message: " + e.Message ); + TOOLS_WARN_EXCEPTION( "sw.uno", "Exception when getting PropertyState: " << rName ); } } } @@ -2182,10 +2182,9 @@ SwXText::convertToTable( { xPrSet->setPropertyValue(rTableProperty.Name, rTableProperty.Value); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN( "sw.uno", "Exception when setting property: " - + rTableProperty.Name + ". Message: " + e.Message ); + TOOLS_WARN_EXCEPTION( "sw.uno", "Exception when setting property: " << rTableProperty.Name ); } } |