Kaydet (Commit) 530b8355 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Move OSL_ENSURE(false,...) to OSL_FAIL(...)

üst ea807d03
......@@ -217,7 +217,7 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
#if OSL_DEBUG_LEVEL > 0
::rtl::OString sMessage( "OConnection::construct: malformed URI: " );
sMessage += ::rtl::OUStringToOString( e.getMessage(), osl_getThreadTextEncoding() );
OSL_ENSURE( false, sMessage.getStr() );
OSL_FAIL( sMessage.getStr() );
#endif
}
......
......@@ -154,7 +154,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
// attempted to load - was it successful?
if ( !m_hCppConnModule )
{
OSL_ENSURE( false, "MysqlCDriver::impl_initCppConn_lck_throw: could not load the " CPPCONN_LIB " library!");
OSL_FAIL( "MysqlCDriver::impl_initCppConn_lck_throw: could not load the " CPPCONN_LIB " library!");
throw SQLException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Unable to load the " CPPCONN_LIB " library." ) ),
*this,
......@@ -171,7 +171,7 @@ void MysqlCDriver::impl_initCppConn_lck_throw()
const FGetMySQLDriver pFactoryFunction = (FGetMySQLDriver)( osl_getFunctionSymbol( m_hCppConnModule, sSymbolName.pData ) );
if ( !pFactoryFunction )
{
OSL_ENSURE( false, "MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in " CPPCONN_LIB "!");
OSL_FAIL( "MysqlCDriver::impl_initCppConn_lck_throw: could not find the factory symbol in " CPPCONN_LIB "!");
throw SQLException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( CPPCONN_LIB " is invalid: missing the driver factory function." ) ),
*this,
......
......@@ -154,7 +154,7 @@ int mysqlToOOOType(int cppConnType)
return com::sun::star::sdbc::DataType::VARCHAR;
}
OSL_ENSURE( false, "mysqlToOOOType: unhandled case, falling back to VARCHAR" );
OSL_FAIL( "mysqlToOOOType: unhandled case, falling back to VARCHAR" );
return com::sun::star::sdbc::DataType::VARCHAR;
}
......
......@@ -78,7 +78,7 @@ namespace {
switch(nIndex)
{
default:
OSL_ENSURE(false,"Unexpected case!");
OSL_FAIL("Unexpected case!");
break;
case DRAW_INDEX:
bDrawState=sal_True;
......@@ -520,7 +520,7 @@ rtl::OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue
break;
default:
OSL_ENSURE(false,"Unexpected case");
OSL_FAIL("Unexpected case");
}
aOutTypeName = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("pdf_Portable_Document_Format") );
......
......@@ -146,7 +146,7 @@ void ImageContainer::writeBase64EncodedStream( ImageId nId, EmitContext& rContex
uno::Sequence<sal_Int8> aData;
if( !(pValue->Value >>= aData) )
OSL_ENSURE(false,"Wrong data type");
OSL_FAIL("Wrong data type");
rContext.rEmitter.write( encodeBase64( aData.getConstArray(), aData.getLength() ));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment