From b6c617c3d69d6b2cf209bd7cfe4b9565b58e87c0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Apr 2023 12:14:01 +0200 Subject: use more TOOLS_WARN_EXCEPTION so we get more complete information when something goes wrong Change-Id: Ia73623f748b0779cf80b0086bd8258791590e9ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150754 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/style/xmlexppr.cxx | 5 +++-- xmloff/source/text/XMLTextMarkImportContext.cxx | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx index 31064b26ee49..ee1600da27d6 100644 --- a/xmloff/source/style/xmlexppr.cxx +++ b/xmloff/source/style/xmlexppr.cxx @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -438,7 +439,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray( catch( UnknownPropertyException& ) { // might be a problem of getImplementationId - OSL_ENSURE( false, "unknown property in getPropertyValue" ); + TOOLS_WARN_EXCEPTION("xmloff.style", "unknown property in getPropertyValue" ); } } @@ -644,7 +645,7 @@ std::vector SvXMLExportPropertyMapper::Filter_( catch( UnknownPropertyException& ) { // might be a problem of getImplementationId - OSL_ENSURE( false, "unknown property in getPropertyStates" ); + TOOLS_WARN_EXCEPTION("xmloff.style", "unknown property in getPropertyStates" ); } } diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx index 4a71194df23c..bdae5f16c8d6 100644 --- a/xmloff/source/text/XMLTextMarkImportContext.cxx +++ b/xmloff/source/text/XMLTextMarkImportContext.cxx @@ -42,6 +42,7 @@ #include #include +#include #include @@ -384,7 +385,7 @@ void XMLTextMarkImportContext::endFastElement(sal_Int32 nElement) try { xInsertionCursor->gotoRange(xStartRange, true); } catch (uno::Exception&) { - OSL_ENSURE(false, + TOOLS_WARN_EXCEPTION("xmloff.text", "cannot go to end position of bookmark"); } -- cgit