diff options
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"); } |