From dc8835de2a09ec9cc2a14cd0e78d0a298ca6bc4c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Dec 2014 14:56:47 +0100 Subject: bridges: Use appropriate OUString functions on string constants Change-Id: I72e0df381bd9525ea4fff1f4bbd57ffe84ce241f --- bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridges') diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx index 7c0de0ff8135..fc439a96c951 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx @@ -114,7 +114,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp ) if (! pTypeDescr) { throw RuntimeException( - OUString("cannot get typedescription for type ") + + "cannot get typedescription for type " + *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) ); } @@ -130,7 +130,7 @@ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp ) if (! rtti) { throw RuntimeException( - OUString("no rtti for type ") + + "no rtti for type " + *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ) ); } } @@ -158,7 +158,7 @@ void fillUnoException( __cxa_exception * header, uno_Any * pUnoExc, uno_Mapping typelib_typedescription_getByName( &pExcTypeDescr, unoName.pData ); if (0 == pExcTypeDescr) { - RuntimeException aRE( OUString("exception type not found: ") + unoName ); + RuntimeException aRE( "exception type not found: " + unoName ); Type const & rType = ::getCppuType( &aRE ); uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno ); SAL_WARN("bridges", aRE.Message); -- cgit