diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-11 16:03:38 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-11 17:54:56 +0100 |
commit | 87b2bc2cc31b4bc334af8d598684a340242d3633 (patch) | |
tree | 275cbd9ec9b35493f71e013065493709fe5d5fe4 /vcl | |
parent | 58b46086e64b6cbe288c146b017d5d4de1ce6db0 (diff) |
Use static for this getenv call too.
Change-Id: Ieb8dd13763c6d5e6d30ce641683de79d89d135df
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 3602c83f0907..c342b7f0527d 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -291,7 +291,8 @@ SalFrame* ImplSalCreateFrame( WinSalInstance* pInst, DWORD nExSysStyle = 0; sal_Bool bSubFrame = FALSE; - if( getenv( "SAL_SYNCHRONIZE" ) ) // no buffering of drawing commands + static const char* pEnvSynchronize = getenv("SAL_SYNCHRONIZE"); + if ( pEnvSynchronize ) // no buffering of drawing commands GdiSetBatchLimit( 1 ); static const char* pEnvTransparentFloats = getenv("SAL_TRANSPARENT_FLOATS" ); |