summaryrefslogtreecommitdiff
path: root/reportdesign/source/filter/xml
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:04:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:05:07 +0100
commitf6ccb8354a350fce31f8c6c7d04b86d5c0a126d1 (patch)
treec2c0b2f76362e442e1cbdec027ea4625f8ed3165 /reportdesign/source/filter/xml
parent7a7f390db3656b976a5c9fc8d081d5e3c60582e8 (diff)
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
Diffstat (limited to 'reportdesign/source/filter/xml')
-rw-r--r--reportdesign/source/filter/xml/xmlCell.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlComponent.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlCondPrtExpr.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlControlProperty.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlExport.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlFixedContent.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlFormatCondition.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlFormattedField.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlFunction.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlGroup.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlHelper.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlImage.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlReport.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlReportElement.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlReportElementBase.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlSection.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlStyleImport.cxx4
-rw-r--r--reportdesign/source/filter/xml/xmlSubDocument.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlTable.cxx6
20 files changed, 27 insertions, 27 deletions
diff --git a/reportdesign/source/filter/xml/xmlCell.cxx b/reportdesign/source/filter/xml/xmlCell.cxx
index f47f360c4687..868a73002315 100644
--- a/reportdesign/source/filter/xml/xmlCell.cxx
+++ b/reportdesign/source/filter/xml/xmlCell.cxx
@@ -245,7 +245,7 @@ void OXMLCell::EndElement()
}
catch(uno::Exception&)
{
- OSL_ENSURE(0,"OXMLCell::EndElement -> exception catched");
+ OSL_FAIL("OXMLCell::EndElement -> exception catched");
}
}
}
diff --git a/reportdesign/source/filter/xml/xmlComponent.cxx b/reportdesign/source/filter/xml/xmlComponent.cxx
index dd1387db40da..aa8da4c42b62 100644
--- a/reportdesign/source/filter/xml/xmlComponent.cxx
+++ b/reportdesign/source/filter/xml/xmlComponent.cxx
@@ -98,7 +98,7 @@ OXMLComponent::OXMLComponent( ORptFilter& _rImport
}
catch(const Exception&)
{
- OSL_ENSURE(0,"Exception catched while putting props into report component!");
+ OSL_FAIL("Exception catched while putting props into report component!");
}
}
}
diff --git a/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx b/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx
index 16135095268a..56eb0c4eabb9 100644
--- a/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx
+++ b/reportdesign/source/filter/xml/xmlCondPrtExpr.cxx
@@ -81,7 +81,7 @@ OXMLCondPrtExpr::OXMLCondPrtExpr( ORptFilter& _rImport,
}
catch(const Exception&)
{
- OSL_ENSURE(0,"Exception catched while putting Function props!");
+ OSL_FAIL("Exception catched while putting Function props!");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlControlProperty.cxx b/reportdesign/source/filter/xml/xmlControlProperty.cxx
index c156b7ffd58e..89fe02a0336a 100644
--- a/reportdesign/source/filter/xml/xmlControlProperty.cxx
+++ b/reportdesign/source/filter/xml/xmlControlProperty.cxx
@@ -165,7 +165,7 @@ void OXMLControlProperty::EndElement()
}
catch(const Exception&)
{
- OSL_ENSURE(0,"Unknown property found!");
+ OSL_FAIL("Unknown property found!");
}
}
}
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index 5794e46a9886..e79603a6294b 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -473,7 +473,7 @@ void ORptExport::exportFormatConditions(const Reference<XReportControlModel>& _x
}
catch(uno::Exception&)
{
- OSL_ENSURE(0,"Can not access format condition!");
+ OSL_FAIL("Can not access format condition!");
}
}
// -----------------------------------------------------------------------------
@@ -720,7 +720,7 @@ void ORptExport::exportReportComponentAutoStyles(const Reference<XSection>& _xPr
}
catch(uno::Exception&)
{
- OSL_ENSURE(0,"Can not access format condition!");
+ OSL_FAIL("Can not access format condition!");
}
}
}
diff --git a/reportdesign/source/filter/xml/xmlFixedContent.cxx b/reportdesign/source/filter/xml/xmlFixedContent.cxx
index 9f3c7e5e3c8e..faec25209fbf 100644
--- a/reportdesign/source/filter/xml/xmlFixedContent.cxx
+++ b/reportdesign/source/filter/xml/xmlFixedContent.cxx
@@ -106,7 +106,7 @@ void OXMLCharContent::InsertControlCharacter(sal_Int16 _nControl)
m_pFixedContent->Characters(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n")));
break;
default:
- OSL_ENSURE(0,"Not supported control character");
+ OSL_FAIL("Not supported control character");
break;
}
}
diff --git a/reportdesign/source/filter/xml/xmlFormatCondition.cxx b/reportdesign/source/filter/xml/xmlFormatCondition.cxx
index 6d70a78ec147..71b4f05f95be 100644
--- a/reportdesign/source/filter/xml/xmlFormatCondition.cxx
+++ b/reportdesign/source/filter/xml/xmlFormatCondition.cxx
@@ -95,7 +95,7 @@ OXMLFormatCondition::OXMLFormatCondition( ORptFilter& rImport,
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the report definition props");
+ OSL_FAIL("Exception catched while filling the report definition props");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlFormattedField.cxx b/reportdesign/source/filter/xml/xmlFormattedField.cxx
index 65fdbe1ee81f..73fd83dc474d 100644
--- a/reportdesign/source/filter/xml/xmlFormattedField.cxx
+++ b/reportdesign/source/filter/xml/xmlFormattedField.cxx
@@ -92,7 +92,7 @@ OXMLFormattedField::OXMLFormattedField( ORptFilter& rImport,
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the report definition props");
+ OSL_FAIL("Exception catched while filling the report definition props");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlFunction.cxx b/reportdesign/source/filter/xml/xmlFunction.cxx
index fd0ede7b2244..998e40839bd2 100644
--- a/reportdesign/source/filter/xml/xmlFunction.cxx
+++ b/reportdesign/source/filter/xml/xmlFunction.cxx
@@ -101,7 +101,7 @@ OXMLFunction::OXMLFunction( ORptFilter& _rImport
}
catch(const Exception&)
{
- OSL_ENSURE(0,"Exception catched while putting Function props!");
+ OSL_FAIL("Exception catched while putting Function props!");
}
}
}
@@ -132,7 +132,7 @@ void OXMLFunction::EndElement()
m_xFunction.clear();
}catch(uno::Exception&)
{
- OSL_ENSURE(0,"Exception catched!");
+ OSL_FAIL("Exception catched!");
}
}
}
diff --git a/reportdesign/source/filter/xml/xmlGroup.cxx b/reportdesign/source/filter/xml/xmlGroup.cxx
index c5fad4d165cd..d2524371ae98 100644
--- a/reportdesign/source/filter/xml/xmlGroup.cxx
+++ b/reportdesign/source/filter/xml/xmlGroup.cxx
@@ -193,7 +193,7 @@ OXMLGroup::OXMLGroup( ORptFilter& _rImport
}
catch(const Exception&)
{
- OSL_ENSURE(0,"Exception catched while putting group props!");
+ OSL_FAIL("Exception catched while putting group props!");
}
}
}
@@ -271,7 +271,7 @@ void OXMLGroup::EndElement()
m_xGroups->insertByIndex(0,uno::makeAny(m_xGroup));
}catch(uno::Exception&)
{
- OSL_ENSURE(0,"Exception catched!");
+ OSL_FAIL("Exception catched!");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlHelper.cxx b/reportdesign/source/filter/xml/xmlHelper.cxx
index c00b0cd579ea..8446bf6bdd5f 100644
--- a/reportdesign/source/filter/xml/xmlHelper.cxx
+++ b/reportdesign/source/filter/xml/xmlHelper.cxx
@@ -330,7 +330,7 @@ void OXMLHelper::copyStyleElements(const bool _bOld,const ::rtl::OUString& _sSty
}
catch(uno::Exception&)
{
- OSL_ENSURE(0,"OXMLHelper::copyStyleElements -> exception catched");
+ OSL_FAIL("OXMLHelper::copyStyleElements -> exception catched");
}
}
}
diff --git a/reportdesign/source/filter/xml/xmlImage.cxx b/reportdesign/source/filter/xml/xmlImage.cxx
index ab7567214fdf..0e254e92eab2 100644
--- a/reportdesign/source/filter/xml/xmlImage.cxx
+++ b/reportdesign/source/filter/xml/xmlImage.cxx
@@ -114,7 +114,7 @@ OXMLImage::OXMLImage( ORptFilter& rImport,
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the image props");
+ OSL_FAIL("Exception catched while filling the image props");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
index a0f883c8ad2a..c2dea15b7023 100644
--- a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
@@ -233,7 +233,7 @@ void SAL_CALL ImportDocumentHandler::startElement(const ::rtl::OUString & _sName
}
catch(uno::Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the report definition props");
+ OSL_FAIL("Exception catched while filling the report definition props");
}
bExport = false;
}
diff --git a/reportdesign/source/filter/xml/xmlReport.cxx b/reportdesign/source/filter/xml/xmlReport.cxx
index 6990c9144b20..3edb30acd555 100644
--- a/reportdesign/source/filter/xml/xmlReport.cxx
+++ b/reportdesign/source/filter/xml/xmlReport.cxx
@@ -111,7 +111,7 @@ OXMLReport::OXMLReport( ORptFilter& rImport,
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the report definition props");
+ OSL_FAIL("Exception catched while filling the report definition props");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlReportElement.cxx b/reportdesign/source/filter/xml/xmlReportElement.cxx
index 2ef2ad192423..6ed989c06dbb 100644
--- a/reportdesign/source/filter/xml/xmlReportElement.cxx
+++ b/reportdesign/source/filter/xml/xmlReportElement.cxx
@@ -85,7 +85,7 @@ OXMLReportElement::OXMLReportElement( ORptFilter& rImport,
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the report definition props");
+ OSL_FAIL("Exception catched while filling the report definition props");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlReportElementBase.cxx b/reportdesign/source/filter/xml/xmlReportElementBase.cxx
index 01de1e714bf9..0a86638028b9 100644
--- a/reportdesign/source/filter/xml/xmlReportElementBase.cxx
+++ b/reportdesign/source/filter/xml/xmlReportElementBase.cxx
@@ -108,7 +108,7 @@ void OXMLReportElementBase::EndElement()
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception caught while inserting a new control!");
+ OSL_FAIL("Exception caught while inserting a new control!");
}
}
//----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlSection.cxx b/reportdesign/source/filter/xml/xmlSection.cxx
index 098858190d28..5d19b6e9c202 100644
--- a/reportdesign/source/filter/xml/xmlSection.cxx
+++ b/reportdesign/source/filter/xml/xmlSection.cxx
@@ -102,13 +102,13 @@ OXMLSection::OXMLSection( ORptFilter& rImport,
break;
default:
- OSL_ENSURE(0,"OXMLSection: Unknown attribute!");
+ OSL_FAIL("OXMLSection: Unknown attribute!");
}
}
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the section props");
+ OSL_FAIL("Exception catched while filling the section props");
}
}
// -----------------------------------------------------------------------------
diff --git a/reportdesign/source/filter/xml/xmlStyleImport.cxx b/reportdesign/source/filter/xml/xmlStyleImport.cxx
index e93e7f37a3e9..eab257017a91 100644
--- a/reportdesign/source/filter/xml/xmlStyleImport.cxx
+++ b/reportdesign/source/filter/xml/xmlStyleImport.cxx
@@ -311,7 +311,7 @@ SvXMLStyleContext *OReportStylesContext::CreateStyleStyleChildContext(
xAttrList, *this, nFamily );
break;
default:
- OSL_ENSURE(0,"OReportStylesContext::CreateStyleStyleChildContext: Unknown style family. PLease check.");
+ OSL_FAIL("OReportStylesContext::CreateStyleStyleChildContext: Unknown style family. PLease check.");
break;
}
}
@@ -368,7 +368,7 @@ Reference < XNameContainer >
xStyles = ((SvXMLImport *)&GetImport())->GetTextImport()->GetFrameStyles();
break;
default:
- OSL_ENSURE(0,"OReportStylesContext::CreateStyleStyleChildContext: Unknown style family. PLease check.");
+ OSL_FAIL("OReportStylesContext::CreateStyleStyleChildContext: Unknown style family. PLease check.");
break;
}
if( !xStyles.is() && sName.getLength() && GetOwnImport().GetModel().is() )
diff --git a/reportdesign/source/filter/xml/xmlSubDocument.cxx b/reportdesign/source/filter/xml/xmlSubDocument.cxx
index 63ed9b92f77e..847752adaeae 100644
--- a/reportdesign/source/filter/xml/xmlSubDocument.cxx
+++ b/reportdesign/source/filter/xml/xmlSubDocument.cxx
@@ -144,7 +144,7 @@ void OXMLSubDocument::EndElement()
}
catch(uno::Exception&)
{
- OSL_ENSURE(0,"Can not access format condition!");
+ OSL_FAIL("Can not access format condition!");
}
}
diff --git a/reportdesign/source/filter/xml/xmlTable.cxx b/reportdesign/source/filter/xml/xmlTable.cxx
index 78ff08494a5e..92fbf0658867 100644
--- a/reportdesign/source/filter/xml/xmlTable.cxx
+++ b/reportdesign/source/filter/xml/xmlTable.cxx
@@ -122,7 +122,7 @@ OXMLTable::OXMLTable( ORptFilter& rImport
}
catch(Exception&)
{
- OSL_ENSURE(0,"Exception catched while filling the section props");
+ OSL_FAIL("Exception catched while filling the section props");
}
}
// -----------------------------------------------------------------------------
@@ -269,7 +269,7 @@ void OXMLTable::EndElement()
}
catch(beans::PropertyVetoException)
{
- OSL_ENSURE(0,"Could not set the correct position or size!");
+ OSL_FAIL("Could not set the correct position or size!");
}
}
}
@@ -282,7 +282,7 @@ void OXMLTable::EndElement()
}
catch(Exception&)
{
- OSL_ENSURE(0,"OXMLTable::EndElement -> exception catched");
+ OSL_FAIL("OXMLTable::EndElement -> exception catched");
}
}
// -----------------------------------------------------------------------------