diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-10-22 21:58:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-23 10:44:09 +0200 |
commit | 1ed2c24a6e638ad7793c46427e4c49e42d435239 (patch) | |
tree | c1da9eb5d79baea4eb1e3bbf87e11407d8894076 /cppuhelper/source/implbase_ex.cxx | |
parent | There is no inc in solver any more (diff) | |
download | core-1ed2c24a6e638ad7793c46427e4c49e42d435239.tar.gz core-1ed2c24a6e638ad7793c46427e4c49e42d435239.zip |
remove RTL_CONSTASCII_(U)STRINGPARAM
Change-Id: I0bce921bfc7102b9a33b1c87eee3ddec0ebaed7b
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with one little typo fix
Diffstat (limited to 'cppuhelper/source/implbase_ex.cxx')
-rw-r--r-- | cppuhelper/source/implbase_ex.cxx | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx index 30e4d08e6cc4..8875c0814150 100644 --- a/cppuhelper/source/implbase_ex.cxx +++ b/cppuhelper/source/implbase_ex.cxx @@ -51,15 +51,8 @@ static inline void checkInterface( Type const & rType ) { if (TypeClass_INTERFACE != rType.getTypeClass()) { - OUStringBuffer buf( 64 ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("querying for interface \"") ); - buf.append( rType.getTypeName() ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\": no interface type!") ); - OUString msg( buf.makeStringAndClear() ); -#if OSL_DEBUG_LEVEL > 0 - OString str( OUStringToOString( msg, RTL_TEXTENCODING_ASCII_US ) ); - OSL_FAIL( str.getStr() ); -#endif + OUString msg( "querying for interface \"" + rType.getTypeName() + "\": no interface type!" ); + SAL_WARN( "cppuhelper", msg ); throw RuntimeException( msg, Reference< XInterface >() ); } } @@ -101,15 +94,8 @@ static inline type_entry * __getTypeEntries( class_data * cd ) OSL_ENSURE( ! isXInterface( rType.getTypeLibType()->pTypeName ), "### want to implement XInterface: template argument is XInterface?!?!?!" ); if (rType.getTypeClass() != TypeClass_INTERFACE) { - OUStringBuffer buf( 48 ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("type \"") ); - buf.append( rType.getTypeName() ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" is no interface type!") ); - OUString msg( buf.makeStringAndClear() ); -#if OSL_DEBUG_LEVEL > 0 - OString str( OUStringToOString( msg, RTL_TEXTENCODING_ASCII_US ) ); - OSL_FAIL( str.getStr() ); -#endif + OUString msg( "type \"" + rType.getTypeName() + "\" is no interface type!" ); + SAL_WARN( "cppuhelper", msg ); throw RuntimeException( msg, Reference< XInterface >() ); } // ref is statically held by getCppuType() @@ -214,15 +200,8 @@ static inline void * __queryDeepNoXInterface( } else { - OUStringBuffer buf( 64 ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("cannot get type description for type \"") ); - buf.append( pEntries[ n ].m_type.typeRef->pTypeName ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\"!") ); - OUString msg( buf.makeStringAndClear() ); -#if OSL_DEBUG_LEVEL > 0 - OString str( OUStringToOString( msg, RTL_TEXTENCODING_ASCII_US ) ); - OSL_FAIL( str.getStr() ); -#endif + OUString msg( "cannot get type description for type \"" + OUString(pEntries[ n ].m_type.typeRef->pTypeName) + "\"!" ); + SAL_WARN( "cppuhelper", msg ); throw RuntimeException( msg, Reference< XInterface >() ); } } |