summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotext.cxx11
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 );
}
}