bridges: Use appropriate OUString functions on string constants

Change-Id: I95ec7503ab7cf0309427118cc5af95eba4f5785b
This commit is contained in:
Stephan Bergmann
2014-12-16 17:26:39 +01:00
parent c13a1c2e5c
commit b4a73f9d00

View File

@@ -288,7 +288,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
if (! pTypeDescr) if (! pTypeDescr)
{ {
throw RuntimeException( throw RuntimeException(
OUString("cannot get typedescription for type ") + "cannot get typedescription for type " +
*reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) ); *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) );
} }
@@ -318,7 +318,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
if (! rtti) if (! rtti)
{ {
throw RuntimeException( throw RuntimeException(
OUString("no rtti for type ") + "no rtti for type " +
*reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) ); *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) );
} }
} }
@@ -346,7 +346,7 @@ void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping
typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData ); typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData );
if (0 == pExcTypeDescr) if (0 == pExcTypeDescr)
{ {
RuntimeException aRE( OUString("exception type not found: ") + unoName ); RuntimeException aRE( "exception type not found: " + unoName );
Type const & rType = ::getCppuType( &aRE ); Type const & rType = ::getCppuType( &aRE );
uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno ); uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
SAL_WARN("bridges", aRE.Message); SAL_WARN("bridges", aRE.Message);