diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-16 17:26:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-16 17:26:39 +0100 |
commit | b4a73f9d003ff5c452eeb80993073137e52848e8 (patch) | |
tree | d373cd20b4fe4bd05102252e0d7a1a651a20475a /bridges | |
parent | c13a1c2e5ce6ea0b78e46f314c1980a4f0c7a2f4 (diff) |
bridges: Use appropriate OUString functions on string constants
Change-Id: I95ec7503ab7cf0309427118cc5af95eba4f5785b
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx index a912da2761cb..4814a2400cf0 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx @@ -288,7 +288,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 ) ); } @@ -318,7 +318,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 ) ); } } @@ -346,7 +346,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); |