summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 14:27:45 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:50:43 +0100
commit4363d620076d3624d96bdde5ad72d88065858071 (patch)
treea7da5dc94879b317210c6ca046bb252316541639 /xmloff
parentdbb2c4348eb885830a5588071fdf8a1d8871b89b (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/ColorPropertySet.cxx8
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx2
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx6
-rw-r--r--xmloff/source/chart/SchXMLImport.cxx6
-rw-r--r--xmloff/source/chart/SchXMLSeries2Context.cxx2
-rw-r--r--xmloff/source/chart/SchXMLSeriesHelper.cxx4
-rw-r--r--xmloff/source/chart/SchXMLTools.cxx10
-rw-r--r--xmloff/source/core/RDFaExportHelper.cxx2
-rw-r--r--xmloff/source/core/RDFaImportHelper.cxx8
-rw-r--r--xmloff/source/core/xmlexp.cxx2
-rw-r--r--xmloff/source/core/xmlimp.cxx2
-rw-r--r--xmloff/source/forms/elementimport.cxx8
-rw-r--r--xmloff/source/forms/layerimport.cxx2
-rw-r--r--xmloff/source/forms/propertyimport.cxx6
-rw-r--r--xmloff/source/text/XMLIndexTOCContext.cxx2
-rw-r--r--xmloff/source/text/XMLSectionExport.cxx6
-rw-r--r--xmloff/source/text/XMLTextMarkImportContext.cxx6
-rw-r--r--xmloff/source/text/XMLTextNumRuleInfo.cxx2
-rw-r--r--xmloff/source/text/txtlists.cxx2
-rw-r--r--xmloff/source/transform/ChartPlotAreaOASISTContext.cxx2
-rw-r--r--xmloff/source/transform/ChartPlotAreaOOoTContext.cxx2
-rw-r--r--xmloff/source/transform/EventOOoTContext.cxx2
-rw-r--r--xmloff/source/transform/StyleOASISTContext.cxx4
-rw-r--r--xmloff/source/transform/StyleOOoTContext.cxx8
-rw-r--r--xmloff/source/xforms/xformsimport.cxx6
25 files changed, 54 insertions, 56 deletions
diff --git a/xmloff/source/chart/ColorPropertySet.cxx b/xmloff/source/chart/ColorPropertySet.cxx
index f2f3a826ce..fd75460a1b 100644
--- a/xmloff/source/chart/ColorPropertySet.cxx
+++ b/xmloff/source/chart/ColorPropertySet.cxx
@@ -156,7 +156,7 @@ void SAL_CALL ColorPropertySet::addPropertyChangeListener( const OUString& /* aP
lang::WrappedTargetException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "Not Implemented" );
+ OSL_FAIL( "Not Implemented" );
return;
}
@@ -165,7 +165,7 @@ void SAL_CALL ColorPropertySet::removePropertyChangeListener( const OUString& /*
lang::WrappedTargetException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "Not Implemented" );
+ OSL_FAIL( "Not Implemented" );
return;
}
@@ -174,7 +174,7 @@ void SAL_CALL ColorPropertySet::addVetoableChangeListener( const OUString& /* Pr
lang::WrappedTargetException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "Not Implemented" );
+ OSL_FAIL( "Not Implemented" );
return;
}
@@ -183,7 +183,7 @@ void SAL_CALL ColorPropertySet::removeVetoableChangeListener( const OUString& /*
lang::WrappedTargetException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "Not Implemented" );
+ OSL_FAIL( "Not Implemented" );
return;
}
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index e8cf990fde..10dd31dda7 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -161,7 +161,7 @@ void lcl_MoveDataToCandleStickSeries(
}
catch( uno::Exception & )
{
- OSL_ENSURE( false, "Exception caught while moving data to candlestick series" );
+ OSL_FAIL( "Exception caught while moving data to candlestick series" );
}
}
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 14dbac5a16..95fc36fdfe 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -366,7 +366,7 @@ Reference< chart2::data::XLabeledDataSequence > lcl_getCategories( const Referen
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, OUStringToOString(
+ OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
@@ -484,7 +484,7 @@ bool lcl_isSeriesAttachedToFirstAxis(
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, OUStringToOString(
+ OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
@@ -3820,7 +3820,7 @@ void SchXMLExportHelper_Impl::InitRangeSegmentationProperties( const Reference<
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, OUStringToOString(
+ OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx
index 8c95642f7b..c5122e4ded 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -549,7 +549,7 @@ void SchXMLImportHelper::DeleteDataSeries(
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, OUStringToOString(
+ OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
@@ -632,7 +632,7 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries(
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, OUStringToOString(
+ OSL_FAIL( OUStringToOString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
@@ -645,7 +645,7 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries(
Reference< chart2::data::XLabeledDataSequence > SchXMLImportHelper::GetNewLabeledDataSequence()
{
// @todo: remove this asap
- OSL_ENSURE( false, "Do not call this method" );
+ OSL_FAIL( "Do not call this method" );
Reference< chart2::data::XLabeledDataSequence > xResult;
// DO NOT USED -- DEPRECATED. Use SchXMLTools::GetNewLabeledDataSequence() instead
return xResult;
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index f8058e7c9f..b608f1f9d1 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -464,7 +464,7 @@ void SchXMLSeries2Context::StartElement( const uno::Reference< xml::sax::XAttrib
catch( uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
::rtl::OUString::createFromAscii( typeid( ex ).name()) +
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
diff --git a/xmloff/source/chart/SchXMLSeriesHelper.cxx b/xmloff/source/chart/SchXMLSeriesHelper.cxx
index 44f0c863d9..a56084aed2 100644
--- a/xmloff/source/chart/SchXMLSeriesHelper.cxx
+++ b/xmloff/source/chart/SchXMLSeriesHelper.cxx
@@ -83,7 +83,7 @@ using ::rtl::OUString;
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, OUStringToOString( OUString(
+ OSL_FAIL( OUStringToOString( OUString(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +
OUString::createFromAscii( typeid( ex ).name()) +
OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +
@@ -220,7 +220,7 @@ Reference< chart2::XDataSeries > SchXMLSeriesHelper::getFirstCandleStickSeries(
}
catch( const uno::Exception & )
{
- OSL_ENSURE( false, "Exception caught" );
+ OSL_FAIL( "Exception caught" );
}
return xResult;
}
diff --git a/xmloff/source/chart/SchXMLTools.cxx b/xmloff/source/chart/SchXMLTools.cxx
index 41a0fc9dab..271fd0db6d 100644
--- a/xmloff/source/chart/SchXMLTools.cxx
+++ b/xmloff/source/chart/SchXMLTools.cxx
@@ -493,7 +493,7 @@ void CreateCategories(
catch( const lang::IllegalArgumentException & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IllegalArgumentException caught, Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
@@ -515,7 +515,7 @@ void CreateCategories(
}
catch( uno::Exception & )
{
- OSL_ENSURE( false, "Exception caught while creating Categories" );
+ OSL_FAIL( "Exception caught while creating Categories" );
}
}
@@ -670,7 +670,7 @@ void setXMLRangePropertyAtDataSequence(
catch( const uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught, Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
@@ -700,7 +700,7 @@ bool getXMLRangePropertyFromDataSequence(
catch( const uno::Exception & ex )
{
(void)ex; // avoid warning for pro build
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught, Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
@@ -735,7 +735,7 @@ void copyProperties(
}
catch( const uno::Exception & )
{
- OSL_ENSURE( false, "Copying property sets failed!" );
+ OSL_FAIL( "Copying property sets failed!" );
}
}
diff --git a/xmloff/source/core/RDFaExportHelper.cxx b/xmloff/source/core/RDFaExportHelper.cxx
index c972cfe584..bcf105ecd8 100644
--- a/xmloff/source/core/RDFaExportHelper.cxx
+++ b/xmloff/source/core/RDFaExportHelper.cxx
@@ -224,7 +224,7 @@ RDFaExportHelper::AddRDFa(
}
catch (uno::Exception &)
{
- OSL_ENSURE(false, "AddRDFa: exception");
+ OSL_FAIL("AddRDFa: exception");
}
}
diff --git a/xmloff/source/core/RDFaImportHelper.cxx b/xmloff/source/core/RDFaImportHelper.cxx
index a31f9dff71..e4bbc888e8 100644
--- a/xmloff/source/core/RDFaImportHelper.cxx
+++ b/xmloff/source/core/RDFaImportHelper.cxx
@@ -308,7 +308,7 @@ RDFaInserter::MakeURI( ::rtl::OUString const & i_rURI) const
}
catch (uno::Exception &)
{
- OSL_ENSURE(false, "MakeURI: cannot create URI");
+ OSL_FAIL("MakeURI: cannot create URI");
return 0;
}
}
@@ -403,7 +403,7 @@ void RDFaInserter::InsertRDFaEntry(
}
catch (uno::Exception &)
{
- OSL_ENSURE(false, "InsertRDFaEntry: setStatementRDFa failed?");
+ OSL_FAIL("InsertRDFaEntry: setStatementRDFa failed?");
}
}
@@ -455,12 +455,12 @@ RDFaImportHelper::AddRDFa(
{
if (!i_xObject.is())
{
- OSL_ENSURE(false, "AddRDFa: invalid arg: null textcontent");
+ OSL_FAIL("AddRDFa: invalid arg: null textcontent");
return;
}
if (!i_pRDFaAttributes.get())
{
- OSL_ENSURE(false, "AddRDFa: invalid arg: null RDFa attributes");
+ OSL_FAIL("AddRDFa: invalid arg: null RDFa attributes");
return;
}
m_RDFaEntries.push_back(RDFaEntry(i_xObject, i_pRDFaAttributes));
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index e7d0ee46b3..618ceb4680 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -2503,7 +2503,7 @@ SvXMLExport::AddAttributeXmlId(uno::Reference<uno::XInterface> const & i_xIfc)
}
else
{
- OSL_ENSURE(false, "SvXMLExport::AddAttributeXmlId: "
+ OSL_FAIL("SvXMLExport::AddAttributeXmlId: "
"invalid stream name");
}
}
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index eaf5975417..ecaba7461e 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -1966,7 +1966,7 @@ void SvXMLImport::SetXmlId(uno::Reference<uno::XInterface> const & i_xIfc,
}
}
} catch (uno::Exception &) {
- OSL_ENSURE(false, "SvXMLImport::SetXmlId: exception?");
+ OSL_FAIL("SvXMLImport::SetXmlId: exception?");
}
}
}
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index 2322e5d386..571884d83d 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -338,7 +338,7 @@ namespace xmloff
::rtl::OString aMessage( "OElementImport::implImportGenericProperties: encountered an unknown property (" );
aMessage += ::rtl::OUStringToOString( aPropValues->Name, RTL_TEXTENCODING_ASCII_US );
aMessage += "), but component is no PropertyBag!";
- OSL_ENSURE( false, aMessage.getStr() );
+ OSL_FAIL( aMessage.getStr() );
#endif
continue;
}
@@ -374,7 +374,7 @@ namespace xmloff
if ( bPropIsSequence != bValueIsSequence )
{
- OSL_ENSURE( false, "OElementImport::implImportGenericProperties: either both value and property should be a sequence, or none of them!" );
+ OSL_FAIL( "OElementImport::implImportGenericProperties: either both value and property should be a sequence, or none of them!" );
continue;
}
@@ -428,13 +428,13 @@ namespace xmloff
aPropValues->Value <<= static_cast< sal_Int64 >( nVal );
break;
default:
- OSL_ENSURE( false, "OElementImport::implImportGenericProperties: unsupported value type!" );
+ OSL_FAIL( "OElementImport::implImportGenericProperties: unsupported value type!" );
break;
}
}
break;
default:
- OSL_ENSURE( false, "OElementImport::implImportGenericProperties: non-double values not supported!" );
+ OSL_FAIL( "OElementImport::implImportGenericProperties: non-double values not supported!" );
break;
}
}
diff --git a/xmloff/source/forms/layerimport.cxx b/xmloff/source/forms/layerimport.cxx
index 7205a87081..8800b720e1 100644
--- a/xmloff/source/forms/layerimport.cxx
+++ b/xmloff/source/forms/layerimport.cxx
@@ -546,7 +546,7 @@ SvXMLImportContext* OFormLayerXMLImport_Impl::createContext(const sal_uInt16 _nP
if ( !pContext )
{
- OSL_ENSURE( false, "unknown element" );
+ OSL_FAIL( "unknown element" );
pContext =
new SvXMLImportContext(m_rImporter, _nPrefix, _rLocalName);
}
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index fe90c90fbb..1123654d9f 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -542,8 +542,7 @@ void OListPropertyContext::StartElement( const Reference< sax::XAttributeList >&
}
else
{
- OSL_ENSURE( false,
- ::rtl::OString( "OListPropertyContext::StartElement: unknown child element (\"")
+ OSL_FAIL( ::rtl::OString( "OListPropertyContext::StartElement: unknown child element (\"")
+= ::rtl::OString( sAttributeName.getStr(), sAttributeName.getLength(), RTL_TEXTENCODING_ASCII_US )
+= ::rtl::OString( "\")!" ) );
}
@@ -628,8 +627,7 @@ void OListValueContext::StartElement( const Reference< sax::XAttributeList >& _r
}
}
- OSL_ENSURE( false,
- ::rtl::OString( "OListValueContext::StartElement: unknown child element (\"")
+ OSL_FAIL( ::rtl::OString( "OListValueContext::StartElement: unknown child element (\"")
+= ::rtl::OString( sAttributeName.getStr(), sAttributeName.getLength(), RTL_TEXTENCODING_ASCII_US )
+= ::rtl::OString( "\")!" ) );
}
diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx
index 4dddabd8d9..90afc6fae7 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -362,7 +362,7 @@ SvXMLImportContext* XMLIndexTOCContext::CreateChildContext(
break;
default:
- OSL_ENSURE(false, "index type not implemented");
+ OSL_FAIL("index type not implemented");
break;
}
}
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx
index b8b675f41d..0a4639d6be 100644
--- a/xmloff/source/text/XMLSectionExport.cxx
+++ b/xmloff/source/text/XMLSectionExport.cxx
@@ -305,7 +305,7 @@ void XMLSectionExport::ExportSectionEnd(
break;
default:
- OSL_ENSURE(false, "unknown index type");
+ OSL_FAIL("unknown index type");
// default: skip index!
break;
}
@@ -331,7 +331,7 @@ void XMLSectionExport::ExportSectionEnd(
}
else
{
- OSL_ENSURE(false, "Need element name!");
+ OSL_FAIL("Need element name!");
}
}
// else: autostyles -> ignore
@@ -375,7 +375,7 @@ void XMLSectionExport::ExportIndexStart(
default:
// skip index
- OSL_ENSURE(false, "unknown index type");
+ OSL_FAIL("unknown index type");
break;
}
}
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 0453f9a271..bbe4b36bb8 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -382,7 +382,7 @@ Reference<XTextContent> XMLTextMarkImportContext::CreateAndInsertMark(
if (!xIfc.is())
{
- OSL_ENSURE(false, "CreateAndInsertMark: cannot create service?");
+ OSL_FAIL("CreateAndInsertMark: cannot create service?");
return 0;
}
@@ -396,7 +396,7 @@ Reference<XTextContent> XMLTextMarkImportContext::CreateAndInsertMark(
{
if (sMarkName.getLength())
{
- OSL_ENSURE(false, "name given, but XNamed not supported?");
+ OSL_FAIL("name given, but XNamed not supported?");
return 0;
}
}
@@ -419,7 +419,7 @@ Reference<XTextContent> XMLTextMarkImportContext::CreateAndInsertMark(
}
catch (com::sun::star::lang::IllegalArgumentException &)
{
- OSL_ENSURE(false, "CreateAndInsertMark: cannot insert?");
+ OSL_FAIL("CreateAndInsertMark: cannot insert?");
return 0;
}
}
diff --git a/xmloff/source/text/XMLTextNumRuleInfo.cxx b/xmloff/source/text/XMLTextNumRuleInfo.cxx
index a7ef73c611..4157e8b5a8 100644
--- a/xmloff/source/text/XMLTextNumRuleInfo.cxx
+++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx
@@ -172,7 +172,7 @@ void XMLTextNumRuleInfo::Set(
{
if( !(xPropSet->getPropertyValue( msNumberingIsNumber ) >>= mbIsNumbered ) )
{
- OSL_ENSURE( false, "numbered paragraph without number info" );
+ OSL_FAIL( "numbered paragraph without number info" );
mbIsNumbered = sal_False;
}
}
diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx
index 88640d1cc1..a18f6eeaec 100644
--- a/xmloff/source/text/txtlists.cxx
+++ b/xmloff/source/text/txtlists.cxx
@@ -352,7 +352,7 @@ XMLTextListsHelper::GetNumberedParagraphListId(
const ::rtl::OUString i_StyleName)
{
if (!i_StyleName.getLength()) {
- OSL_ENSURE(false, "invalid numbered-paragraph: no style-name");
+ OSL_FAIL("invalid numbered-paragraph: no style-name");
}
if (i_StyleName.getLength()
&& (i_Level < mLastNumberedParagraphs.size())
diff --git a/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx b/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx
index 7ed40f73b3..18aa9350e8 100644
--- a/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx
+++ b/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx
@@ -150,7 +150,7 @@ void XMLAxisOASISContext::StartElement(
}
else
{
- OSL_ENSURE( false, "ChartAxis: Invalid attribute value" );
+ OSL_FAIL( "ChartAxis: Invalid attribute value" );
}
if( eToken != XML_TOKEN_INVALID )
diff --git a/xmloff/source/transform/ChartPlotAreaOOoTContext.cxx b/xmloff/source/transform/ChartPlotAreaOOoTContext.cxx
index d2069b55a7..b0a86eafaa 100644
--- a/xmloff/source/transform/ChartPlotAreaOOoTContext.cxx
+++ b/xmloff/source/transform/ChartPlotAreaOOoTContext.cxx
@@ -114,7 +114,7 @@ void XMLAxisOOoContext::StartElement(
}
else
{
- OSL_ENSURE( false, "ChartAxis: Invalid attribute value" );
+ OSL_FAIL( "ChartAxis: Invalid attribute value" );
}
if( eToken != XML_TOKEN_INVALID )
diff --git a/xmloff/source/transform/EventOOoTContext.cxx b/xmloff/source/transform/EventOOoTContext.cxx
index 5e6bc69c70..cc1c3d18d3 100644
--- a/xmloff/source/transform/EventOOoTContext.cxx
+++ b/xmloff/source/transform/EventOOoTContext.cxx
@@ -77,7 +77,7 @@ void XMLTransformerOOoEventMap_Impl::AddMap( XMLTransformerEventMapEntry *pInit
if( !insert( aVal ).second )
{
- OSL_ENSURE( false, "duplicate OOo event name extry" );
+ OSL_FAIL( "duplicate OOo event name extry" );
}
++pInit;
diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx
index 9f52f8f731..448ca4ad9b 100644
--- a/xmloff/source/transform/StyleOASISTContext.cxx
+++ b/xmloff/source/transform/StyleOASISTContext.cxx
@@ -707,7 +707,7 @@ OUString XMLPropertiesTContext_Impl::MergeUnderline(
eUnderline = XML_BOLD_WAVE;
break;
default:
- OSL_ENSURE( false, "xmloff::XMLPropertiesTContext_Impl::MergeUnderline(), missing underline case!" );
+ OSL_FAIL( "xmloff::XMLPropertiesTContext_Impl::MergeUnderline(), missing underline case!" );
break;
}
}
@@ -722,7 +722,7 @@ OUString XMLPropertiesTContext_Impl::MergeUnderline(
eUnderline = XML_NONE;
break;
default:
- OSL_ENSURE( false, "xmloff::XMLPropertiesTContext_Impl::MergeUnderline(), missing underline case!" );
+ OSL_FAIL( "xmloff::XMLPropertiesTContext_Impl::MergeUnderline(), missing underline case!" );
break;
}
}
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx
index 74dafbffc6..7c43242d49 100644
--- a/xmloff/source/transform/StyleOOoTContext.cxx
+++ b/xmloff/source/transform/StyleOOoTContext.cxx
@@ -609,7 +609,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
bDouble = sal_False;
break;
default:
- OSL_ENSURE( false, "xmloff::XMLPropertiesOOoTContext_Impl::StartElement(), unknown underline token!" );
+ OSL_FAIL( "xmloff::XMLPropertiesOOoTContext_Impl::StartElement(), unknown underline token!" );
break;
}
pContext->AddAttribute(
@@ -712,7 +712,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
break;
default:
- OSL_ENSURE( false, "invalid spline type" );
+ OSL_FAIL( "invalid spline type" );
pContext->AddAttribute(
aNewAttrName, GetXMLToken( XML_NONE ));
break;
@@ -773,7 +773,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
eToken = XML_HOURGLASS;
break;
default:
- OSL_ENSURE( false, "invalid named symbol" );
+ OSL_FAIL( "invalid named symbol" );
break;
}
@@ -804,7 +804,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
aNewAttrName, GetXMLToken( XML_IMAGE ));
break;
default:
- OSL_ENSURE( false, "invalid symbol type" );
+ OSL_FAIL( "invalid symbol type" );
pContext->AddAttribute(
aNewAttrName, GetXMLToken( XML_NONE ));
break;
diff --git a/xmloff/source/xforms/xformsimport.cxx b/xmloff/source/xforms/xformsimport.cxx
index d8e0b43361..7d2b4b44a5 100644
--- a/xmloff/source/xforms/xformsimport.cxx
+++ b/xmloff/source/xforms/xformsimport.cxx
@@ -158,7 +158,7 @@ void applyXFormsSettings( const Reference< XNameAccess >& _rXForms, const Sequen
Reference< XNameAccess > xModelSettings( aSettings.get( "XFormModels" ), UNO_QUERY );
if ( !xModelSettings.is() )
{
- OSL_ENSURE( false, "applyXFormsSettings: wrong type for the XFormModels settings!" );
+ OSL_FAIL( "applyXFormsSettings: wrong type for the XFormModels settings!" );
return;
}
@@ -177,7 +177,7 @@ void applyXFormsSettings( const Reference< XNameAccess >& _rXForms, const Sequen
// the model itself
if ( !_rXForms->hasByName( *pModelName ) )
{
- OSL_ENSURE( false, "applyXFormsSettings: have settings for a non-existent XForms model!" );
+ OSL_FAIL( "applyXFormsSettings: have settings for a non-existent XForms model!" );
continue;
}
@@ -192,7 +192,7 @@ void applyXFormsSettings( const Reference< XNameAccess >& _rXForms, const Sequen
{
if ( !xModelPSI->hasPropertyByName( pSetting->Name ) )
{
- OSL_ENSURE( false, "applyXFormsSettings: non-existent model property!" );
+ OSL_FAIL( "applyXFormsSettings: non-existent model property!" );
continue;
}