summaryrefslogtreecommitdiffstats
path: root/xmloff/source/xforms
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 19:07:44 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:04:37 +0100
commit65c053ca1a5a8c7318ab1e42cdde2d540a283673 (patch)
tree2e1a29f5d832ff0cb0d4c095f038392b472459d1 /xmloff/source/xforms
parentRemove DBG_UTILx (diff)
downloadcore-65c053ca1a5a8c7318ab1e42cdde2d540a283673.tar.gz
core-65c053ca1a5a8c7318ab1e42cdde2d540a283673.zip
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r--xmloff/source/xforms/SchemaRestrictionContext.cxx4
-rw-r--r--xmloff/source/xforms/SchemaSimpleTypeContext.cxx2
-rw-r--r--xmloff/source/xforms/XFormsBindContext.cxx4
-rw-r--r--xmloff/source/xforms/XFormsInstanceContext.cxx4
-rw-r--r--xmloff/source/xforms/XFormsModelContext.cxx4
-rw-r--r--xmloff/source/xforms/XFormsSubmissionContext.cxx4
-rw-r--r--xmloff/source/xforms/xformsapi.cxx2
-rw-r--r--xmloff/source/xforms/xformsexport.cxx4
8 files changed, 14 insertions, 14 deletions
diff --git a/xmloff/source/xforms/SchemaRestrictionContext.cxx b/xmloff/source/xforms/SchemaRestrictionContext.cxx
index b557531beaf6..7f6653d4653c 100644
--- a/xmloff/source/xforms/SchemaRestrictionContext.cxx
+++ b/xmloff/source/xforms/SchemaRestrictionContext.cxx
@@ -132,7 +132,7 @@ void SchemaRestrictionContext::CreateDataType()
}
catch( const Exception& )
{
- DBG_ERROR( "exception during type creation" );
+ OSL_FAIL( "exception during type creation" );
}
DBG_ASSERT( mxDataType.is(), "can't create type" );
}
@@ -357,7 +357,7 @@ SvXMLImportContext* SchemaRestrictionContext::HandleChild(
break;
default:
- DBG_ERROR( "unknown facet" );
+ OSL_FAIL( "unknown facet" );
}
// finally, set the property
diff --git a/xmloff/source/xforms/SchemaSimpleTypeContext.cxx b/xmloff/source/xforms/SchemaSimpleTypeContext.cxx
index f64b2d95ff9e..34e217729547 100644
--- a/xmloff/source/xforms/SchemaSimpleTypeContext.cxx
+++ b/xmloff/source/xforms/SchemaSimpleTypeContext.cxx
@@ -107,7 +107,7 @@ SvXMLImportContext* SchemaSimpleTypeContext::HandleChild(
mxRepository, msTypeName );
break;
default:
- DBG_ERROR( "Booo!" );
+ OSL_FAIL( "Booo!" );
}
return ( pContext != NULL )
diff --git a/xmloff/source/xforms/XFormsBindContext.cxx b/xmloff/source/xforms/XFormsBindContext.cxx
index a67f1e2f9124..f98363a14244 100644
--- a/xmloff/source/xforms/XFormsBindContext.cxx
+++ b/xmloff/source/xforms/XFormsBindContext.cxx
@@ -128,7 +128,7 @@ void XFormsBindContext::HandleAttribute( sal_uInt16 nToken,
rValue ) ) );
break;
default:
- DBG_ERROR( "should not happen" );
+ OSL_FAIL( "should not happen" );
break;
}
}
@@ -156,7 +156,7 @@ SvXMLImportContext* XFormsBindContext::HandleChild(
const OUString&,
const Reference<XAttributeList>& )
{
- DBG_ERROR( "no children supported" );
+ OSL_FAIL( "no children supported" );
return NULL;
}
diff --git a/xmloff/source/xforms/XFormsInstanceContext.cxx b/xmloff/source/xforms/XFormsInstanceContext.cxx
index fda42dfd13ce..bbad38b9461e 100644
--- a/xmloff/source/xforms/XFormsInstanceContext.cxx
+++ b/xmloff/source/xforms/XFormsInstanceContext.cxx
@@ -143,7 +143,7 @@ void XFormsInstanceContext::HandleAttribute(
msId = rValue;
break;
default:
- DBG_ERROR( "should not happen" );
+ OSL_FAIL( "should not happen" );
break;
}
}
@@ -154,7 +154,7 @@ SvXMLImportContext* XFormsInstanceContext::HandleChild(
const OUString&,
const Reference<XAttributeList>& )
{
- DBG_ERROR( "to be handled by CreateChildContext" );
+ OSL_FAIL( "to be handled by CreateChildContext" );
return NULL;
}
diff --git a/xmloff/source/xforms/XFormsModelContext.cxx b/xmloff/source/xforms/XFormsModelContext.cxx
index 8d10e99d843d..889d4e939cd9 100644
--- a/xmloff/source/xforms/XFormsModelContext.cxx
+++ b/xmloff/source/xforms/XFormsModelContext.cxx
@@ -110,7 +110,7 @@ void XFormsModelContext::HandleAttribute(
GetImport().SetError( XMLERROR_XFORMS_NO_SCHEMA_SUPPORT );
break;
default:
- DBG_ERROR( "this should not happen" );
+ OSL_FAIL( "this should not happen" );
break;
}
}
@@ -145,7 +145,7 @@ SvXMLImportContext* XFormsModelContext::HandleChild(
->getDataTypeRepository() );
break;
default:
- DBG_ERROR( "Boooo!" );
+ OSL_FAIL( "Boooo!" );
break;
}
diff --git a/xmloff/source/xforms/XFormsSubmissionContext.cxx b/xmloff/source/xforms/XFormsSubmissionContext.cxx
index d3701147bd23..c56a29a6fbf1 100644
--- a/xmloff/source/xforms/XFormsSubmissionContext.cxx
+++ b/xmloff/source/xforms/XFormsSubmissionContext.cxx
@@ -166,7 +166,7 @@ void XFormsSubmissionContext::HandleAttribute( sal_uInt16 nToken,
lcl_setValue( mxSubmission, OUSTRING("IncludeNamespacePrefixes"), rValue );
break;
default:
- DBG_ERROR( "unknown attribute" );
+ OSL_FAIL( "unknown attribute" );
break;
}
}
@@ -178,7 +178,7 @@ SvXMLImportContext* XFormsSubmissionContext::HandleChild(
const OUString&,
const Reference<XAttributeList>& )
{
- DBG_ERROR( "no children supported" );
+ OSL_FAIL( "no children supported" );
return NULL;
}
diff --git a/xmloff/source/xforms/xformsapi.cxx b/xmloff/source/xforms/xformsapi.cxx
index 13ffff624258..ca6addebdb0a 100644
--- a/xmloff/source/xforms/xformsapi.cxx
+++ b/xmloff/source/xforms/xformsapi.cxx
@@ -344,7 +344,7 @@ rtl::OUString lcl_getBasicTypeName(
}
catch( const Exception& )
{
- DBG_ERROR( "exception during type creation" );
+ OSL_FAIL( "exception during type creation" );
}
return sTypeName;
}
diff --git a/xmloff/source/xforms/xformsexport.cxx b/xmloff/source/xforms/xformsexport.cxx
index 53c8e450a05e..9509340b12ed 100644
--- a/xmloff/source/xforms/xformsexport.cxx
+++ b/xmloff/source/xforms/xformsexport.cxx
@@ -536,7 +536,7 @@ OUString lcl_getXSDType( SvXMLExport& rExport,
case com::sun::star::xsd::DataTypeClass::QName:
case com::sun::star::xsd::DataTypeClass::NOTATION:
default:
- DBG_ERROR( "unknown data type" );
+ OSL_FAIL( "unknown data type" );
}
return rExport.GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_XSD,
@@ -680,7 +680,7 @@ OUString lcl_bool( const Any& rAny )
bool bResult = bool();
if( rAny >>= bResult )
return GetXMLToken( bResult ? XML_TRUE : XML_FALSE );
- DBG_ERROR( "expected boolean value" );
+ OSL_FAIL( "expected boolean value" );
return OUString();
}