From 3a18c3d97abfb60a09cc6a8bd5dd163fe2cfafa3 Mon Sep 17 00:00:00 2001 From: Gert Faller Date: Fri, 10 Dec 2010 18:31:39 +0100 Subject: RTL_CONSTASCII_USTRINGPARAM in ure 1 --- sal/qa/rtl/process/rtl_Process.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sal/qa/rtl/process') diff --git a/sal/qa/rtl/process/rtl_Process.cxx b/sal/qa/rtl/process/rtl_Process.cxx index 0372551d3225..c69436467427 100644 --- a/sal/qa/rtl/process/rtl_Process.cxx +++ b/sal/qa/rtl/process/rtl_Process.cxx @@ -69,7 +69,7 @@ inline ::rtl::OUString getModulePath( void ) printUString(suDirPath, "modulePath:"); suDirPath = suDirPath.copy( 0, suDirPath.lastIndexOf('/') ); suDirPath = suDirPath.copy( 0, suDirPath.lastIndexOf('/') + 1); - suDirPath += rtl::OUString::createFromAscii("bin"); + suDirPath += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bin")); return suDirPath; } @@ -92,9 +92,9 @@ public: void getAppCommandArg_001() { #if defined(WNT) || defined(OS2) - const rtl::OUString EXECUTABLE_NAME = rtl::OUString::createFromAscii("child_process.exe"); + const rtl::OUString EXECUTABLE_NAME(RTL_CONSTASCII_USTRINGPARAM("child_process.exe")); #else - const rtl::OUString EXECUTABLE_NAME = rtl::OUString::createFromAscii("child_process"); + const rtl::OUString EXECUTABLE_NAME(RTL_CONSTASCII_USTRINGPARAM("child_process")); #endif rtl::OUString suCWD = getModulePath(); // rtl::OUString suCWD2 = getExecutableDirectory(); @@ -113,7 +113,7 @@ public: pParameters[3] = suParam3.pData; rtl::OUString suFileURL = suCWD; - suFileURL += rtl::OUString::createFromAscii("/"); + suFileURL += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")); suFileURL += EXECUTABLE_NAME; oslProcessError osl_error = osl_executeProcess( @@ -229,9 +229,9 @@ public: void getGlobalProcessId_002() { #if defined(WNT) || defined(OS2) - const rtl::OUString EXEC_NAME = rtl::OUString::createFromAscii("child_process_id.exe"); + const rtl::OUString EXEC_NAME(RTL_CONSTASCII_USTRINGPARAM("child_process_id.exe")); #else - const rtl::OUString EXEC_NAME = rtl::OUString::createFromAscii("child_process_id"); + const rtl::OUString EXEC_NAME(RTL_CONSTASCII_USTRINGPARAM("child_process_id")); #endif sal_uInt8 pTargetUUID1[16]; rtl_getGlobalProcessId( pTargetUUID1 ); @@ -243,7 +243,7 @@ public: rtl::OUString suCWD = getModulePath(); oslProcess hProcess = NULL; rtl::OUString suFileURL = suCWD; - suFileURL += rtl::OUString::createFromAscii("/"); + suFileURL += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")); suFileURL += EXEC_NAME; oslFileHandle* pChildOutputRead = new oslFileHandle(); oslProcessError osl_error = osl_executeProcess_WithRedirectedIO( -- cgit