Kaydet (Commit) 305b90c9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

OSL_FAIL -> SAL_WARN

Change-Id: I82ce1030e69f8794c9fdbdc138541e5d7e0541d4
üst f8922b67
...@@ -36,10 +36,6 @@ ...@@ -36,10 +36,6 @@
using namespace ::cppu; using namespace ::cppu;
using namespace ::osl; using namespace ::osl;
#if OSL_DEBUG_LEVEL > 1
using namespace ::rtl;
#endif
namespace cppu namespace cppu
{ {
...@@ -97,19 +93,13 @@ void * binuno_queryInterface( void * pUnoI, typelib_TypeDescriptionReference * p ...@@ -97,19 +93,13 @@ void * binuno_queryInterface( void * pUnoI, typelib_TypeDescriptionReference * p
} }
else else
{ {
#if OSL_DEBUG_LEVEL > 1 SAL_WARN(
OUStringBuffer buf( 128 ); "cppu",
buf.append( "### exception occurred querying for interface " ); "exception occurred querying for interface "
buf.append( * reinterpret_cast< OUString const * >( &pDestType->pTypeName ) ); << OUString(pDestType->pTypeName) << ": ["
buf.append( ": [" ); << OUString(pExc->pType->pTypeName) << "] "
buf.append( * reinterpret_cast< OUString const * >( &pExc->pType->pTypeName ) ); << *reinterpret_cast<OUString const *>(pExc->pData));
buf.append( "] " ); // Message is very first member
// Message is very first member
buf.append( * reinterpret_cast< OUString const * >( pExc->pData ) );
OString cstr(
OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) );
OSL_FAIL( cstr.getStr() );
#endif
uno_any_destruct( pExc, 0 ); uno_any_destruct( pExc, 0 );
} }
return ret; return ret;
......
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