diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-30 12:16:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 08:25:07 +0200 |
commit | c9253818ec8252169c20450b41878be459568d95 (patch) | |
tree | 1f271151725042f33c3c8aa3988343bcd7f89e12 /vcl/opengl | |
parent | 242a796a71e29a1d8cdc4dd71d2465b898db32ab (diff) |
loplugin:oncevar
extend oncevar to any POD type
Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0
Reviewed-on: https://gerrit.libreoffice.org/40564
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 4 | ||||
-rw-r--r-- | vcl/opengl/x11/gdiimpl.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 60df24d784ab..54bb066ddd30 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -566,9 +566,9 @@ bool OpenGLSalGraphicsImpl::CheckOffscreenTexture() { glDrawBuffer( GL_COLOR_ATTACHMENT0 ); #if OSL_DEBUG_LEVEL > 0 // lets have some red debugging background. - GLfloat clearColor[4] = { 1.0, 0, 0, 0 }; + GLfloat const clearColor[4] = { 1.0, 0, 0, 0 }; #else - GLfloat clearColor[4] = { 1.0, 1.0, 1.0, 0 }; + GLfloat const clearColor[4] = { 1.0, 1.0, 1.0, 0 }; #endif glClearBufferfv( GL_COLOR, 0, clearColor ); // FIXME: use glClearTexImage if we have it ? diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx index 07a0b6d80fe8..74e9d9454f7a 100644 --- a/vcl/opengl/x11/gdiimpl.cxx +++ b/vcl/opengl/x11/gdiimpl.cxx @@ -303,7 +303,7 @@ bool X11OpenGLContext::ImplInit() if (pFBC && best_fbc != -1) { - int pContextAttribs[] = + int const pContextAttribs[] = { #if 0 // defined(DBG_UTIL) GLX_CONTEXT_MAJOR_VERSION_ARB, 3, |