summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-03 14:03:54 +0200
committerNoel Grandin <noel@peralex.com>2014-11-05 08:44:19 +0200
commit705c48d32eec0aa5180e60ca157daca4b154e4a3 (patch)
tree97f43496f4b429a2b8d03b1e71cb2a1c33142a15 /idlc
parentb7d8a58ff2698ffc6e22943f64aa97c5ea253bd9 (diff)
fdo#38835 strip out OUString globals
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlccompile.cxx8
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");