diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-21 12:14:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-23 13:35:46 +0200 |
commit | b6c617c3d69d6b2cf209bd7cfe4b9565b58e87c0 (patch) | |
tree | 9f4d1d7e5e45e4ee3ffa1c02743b069d6ee88121 /xmloff | |
parent | d7e0247ed43091172c2cc3827399bb111416d617 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlexppr.cxx | 5 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextMarkImportContext.cxx | 3 |
2 files changed, 5 insertions, 3 deletions
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 <com/sun/star/beans/TolerantPropertySetResultType.hpp> #include <rtl/ustrbuf.hxx> #include <comphelper/anycompare.hxx> +#include <comphelper/diagnose_ex.hxx> #include <cppuhelper/weakref.hxx> #include <osl/diagnose.h> #include <list> @@ -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<XMLPropertyState> 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 <com/sun/star/rdf/XMetadatable.hpp> #include <com/sun/star/text/XFormField.hpp> +#include <comphelper/diagnose_ex.hxx> #include <RDFaImportHelper.hxx> @@ -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"); } |