summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-01 14:37:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-02 07:12:46 +0000
commita7369d98991eb41e0e6bb008ef0305c17859540e (patch)
tree8bc87665d071392677446332725de3b6004d1530 /idlc
parent5d39c2013374727b1c8f147b8b99d54402a7ff02 (diff)
loplugin:oncevar in helpcompiler..reportdesign
Change-Id: I2dc57931fb230953c285aeb18f57c0a41fedafcb Reviewed-on: https://gerrit.libreoffice.org/30463 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlccompile.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 1cc5fac9005d..1f628718f479 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -51,8 +51,6 @@ extern int yydebug;
sal_Int32 lineNumber = 1;
-static const char TMP[] = "TMP";
-static const char TEMP[] = "TEMP";
static sal_Char tmpFilePattern[512];
bool isFileUrl(const OString& fileName)
@@ -123,9 +121,9 @@ OString makeTempName(const OString& prefix)
OUString uTmpPath;
OString tmpPath;
- if ( osl_getEnvironment(OUString(TMP).pData, &uTmpPath.pData) != osl_Process_E_None )
+ if ( osl_getEnvironment(OUString("TMP").pData, &uTmpPath.pData) != osl_Process_E_None )
{
- if ( osl_getEnvironment(OUString(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");