From e52779d2f8722c713f72aedbf475267440d729f0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Nov 2013 14:00:40 +0200 Subject: remove unnecessary use of OUString constructor Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71 --- pyuno/source/module/pyuno_runtime.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pyuno') diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 0446d7b26d7b..bb7cb8e65d81 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -177,11 +177,11 @@ static void readLoggingConfig( sal_Int32 *pLevel, FILE **ppFile ) osl_getModuleURLFromFunctionAddress( reinterpret_cast< oslGenericFunction >(readLoggingConfig), (rtl_uString **) &fileName ); - fileName = OUString( fileName.getStr(), fileName.lastIndexOf( '/' )+1 ); + fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 ); #if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE fileName += "../" LIBO_ETC_FOLDER "/"; #endif - fileName += OUString( SAL_CONFIGFILE("pyuno" )); + fileName += SAL_CONFIGFILE("pyuno" ); rtl::Bootstrap bootstrapHandle( fileName ); OUString str; @@ -913,12 +913,12 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, } else { - str = OUString("Couldn't find uno._uno_extract_printable_stacktrace"); + str = "Couldn't find uno._uno_extract_printable_stacktrace"; } } else { - str = OUString("Could not load uno.py, no stacktrace available"); + str = "Could not load uno.py, no stacktrace available"; if ( !e.Message.isEmpty() ) { str += OUString (" (Error loading uno.py: "); @@ -931,7 +931,7 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, else { // it may occur, that no traceback is given (e.g. only native code below) - str = OUString( "no traceback available" ); + str = "no traceback available"; } if( isInstanceOfStructOrException( excValue.get() ) ) -- cgit