OSL_ASSERT takes a condition, not a message

This commit is contained in:
David Tardon 2011-02-26 16:59:00 +01:00
parent 93652f968c
commit 2de4a10ced

View file

@ -344,7 +344,7 @@ void SAL_CALL OOXMLDocPropHandler::startUnknownElement( const ::rtl::OUString& a
aUnknown += aNamespace; aUnknown += aNamespace;
aUnknown += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ":" ) ); aUnknown += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ":" ) );
aUnknown += aName; aUnknown += aName;
OSL_ASSERT( ::rtl::OUStringToOString( aUnknown, RTL_TEXTENCODING_UTF8 ).getStr() ); OSL_FAIL( ::rtl::OUStringToOString( aUnknown, RTL_TEXTENCODING_UTF8 ).getStr() );
if ( m_nInBlock == SAL_MAX_INT32 ) if ( m_nInBlock == SAL_MAX_INT32 )
throw uno::RuntimeException(); throw uno::RuntimeException();