From ebc0a15515c2e29259a7e229cfbdfb5d26fc3006 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 May 2014 12:50:02 +0200 Subject: remove more unnecesary OUString constructor use when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac --- bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bridges/source/cpp_uno/gcc3_linux_intel') diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx index b76f9715dbd9..d75b9a1c8bc7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_intel/cpp2uno.cxx @@ -239,9 +239,7 @@ extern "C" void cpp_vtable_call( OSL_ENSURE( nFunctionIndex < pTypeDescr->nMapFunctionIndexToMemberIndex, "### illegal vtable index!" ); if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex) { - throw RuntimeException( - OUString( "illegal vtable index!" ), - (XInterface *)pThis ); + throw RuntimeException( "illegal vtable index!", (XInterface *)pThis ); } // determine called method @@ -328,9 +326,7 @@ extern "C" void cpp_vtable_call( } default: { - throw RuntimeException( - OUString( "no member description found!" ), - (XInterface *)pThis ); + throw RuntimeException( "no member description found!", (XInterface *)pThis ); } } } -- cgit