diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 14:00:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 11:21:26 +0200 |
commit | e52779d2f8722c713f72aedbf475267440d729f0 (patch) | |
tree | 0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /pyuno | |
parent | e9c4ee996d5a6bf895072613ac4e488346ee5b05 (diff) |
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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() ) ) |