diff options
Diffstat (limited to 'idlc/source/idlccompile.cxx')
-rw-r--r-- | idlc/source/idlccompile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 100ab02b6edf..695db41d2097 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -51,8 +51,8 @@ extern int yydebug; sal_Int32 lineNumber = 1; -static OUString TMP("TMP"); -static OUString TEMP("TEMP"); +static const char TMP[] = "TMP"; +static const char TEMP[] = "TEMP"; static sal_Char tmpFilePattern[512]; bool isFileUrl(const OString& fileName) @@ -123,9 +123,9 @@ OString makeTempName(const OString& prefix) OUString uTmpPath; OString tmpPath; - if ( osl_getEnvironment(TMP.pData, &uTmpPath.pData) != osl_Process_E_None ) + if ( osl_getEnvironment(OUString(TMP).pData, &uTmpPath.pData) != osl_Process_E_None ) { - if ( osl_getEnvironment(TEMP.pData, &uTmpPath.pData) != osl_Process_E_None ) + if ( osl_getEnvironment(OUString(TEMP).pData, &uTmpPath.pData) != osl_Process_E_None ) { #if defined(SAL_W32) tmpPath = OString("c:\\temp"); |