summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:09:32 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:28 +0100
commitf35cf85512e9cc07996fe8e3b708bcd70d255514 (patch)
treef40610daea7182cf88beed181a3dc9fd32e7755b
parentc7153c3aa1af28e80de7aefc184796b015049d79 (diff)
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx2
-rw-r--r--unodevtools/source/unodevtools/typeblob.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx
index 8b9558b6..20543d50 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDatabaseMetaData.cxx
@@ -878,7 +878,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
// -------------------------------------------------------------------------
Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& typeNamePattern, const Sequence< sal_Int32 >& types ) throw(SQLException, RuntimeException)
{
- OSL_ENSURE(0,"Not implemented yet!");
+ OSL_FAIL("Not implemented yet!");
throw SQLException();
return NULL;
}
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
index fc840b26..1361e165 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx
@@ -179,7 +179,7 @@ sal_Bool XFlatXml::importer(
catch( Exception &exc)
{
// something went wrong
- OSL_ENSURE(0, exc.Message);
+ OSL_FAIL(exc.Message);
return sal_False;
}
diff --git a/unodevtools/source/unodevtools/typeblob.cxx b/unodevtools/source/unodevtools/typeblob.cxx
index 4baf0b37..cf53d59c 100644
--- a/unodevtools/source/unodevtools/typeblob.cxx
+++ b/unodevtools/source/unodevtools/typeblob.cxx
@@ -136,7 +136,7 @@ void writeConstantData(typereg::Writer& rWriter, sal_uInt16 fieldIndex,
}
break;
default:
- OSL_ENSURE( 0, "unsupported constant type" );
+ OSL_FAIL( "unsupported constant type" );
break;
}
@@ -798,7 +798,7 @@ void* getTypeBlob(Reference< XHierarchicalNameAccess > xTDmgr,
}
break;
default:
- OSL_ENSURE( 0, "unsupported type" );
+ OSL_FAIL( "unsupported type" );
break;
}