summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 14:06:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-28 08:55:28 +0200
commitd2d85921605415908c553e84db654628f9f0c0b1 (patch)
tree161816623c32febde1c62d524fa1ef0a20a1aeda /vcl/source/opengl
parent26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (diff)
loplugin:oncevar in vcl
Change-Id: I37a6dacda12e1c2910737d74aa344c7e2e195aeb Reviewed-on: https://gerrit.libreoffice.org/39328 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 79bdc4afc273..f9443f708bd2 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -141,8 +141,7 @@ static void addPreamble(OString& rShaderSource, const OString& rPreamble)
if (rPreamble.isEmpty())
return;
- OString aVersionStr("#version");
- int nVersionStrStartPos = rShaderSource.indexOf(aVersionStr);
+ int nVersionStrStartPos = rShaderSource.indexOf("#version");
if (nVersionStrStartPos == -1)
{