diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-16 09:29:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-17 08:41:31 +0200 |
commit | 2e3f5a1e2aad2ff9866d7a782a04bec7c29c0e43 (patch) | |
tree | 2929b89c09f7cbe9915d798c819a47e41f1b1d1d /vcl/workben | |
parent | ac13f4db592f91783e644535968a8d3202c94640 (diff) |
loplugin:unusedfields in vcl
Change-Id: Id0913b209b089e3c66a7e449e31f8d5d5b1b4f83
Reviewed-on: https://gerrit.libreoffice.org/54413
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index d2349ed33cfe..0df08ad41176 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -2010,8 +2010,6 @@ class OpenGLTests { VclPtr<WorkWindow> mxWinA; VclPtr<WorkWindow> mxWinB; - OpenGLSalGraphicsImpl *mpImplA; - OpenGLSalGraphicsImpl *mpImplB; rtl::Reference<OpenGLContext> mpA; rtl::Reference<OpenGLContext> mpB; @@ -2025,18 +2023,20 @@ public: mxWinA(VclPtr<WorkWindow>::Create(nullptr, WB_APP | WB_STDWORK)), mxWinB(VclPtr<WorkWindow>::Create(nullptr, WB_APP | WB_STDWORK)) { + OpenGLSalGraphicsImpl *pImplA; + OpenGLSalGraphicsImpl *pImplB; if (!OpenGLHelper::isVCLOpenGLEnabled()) { - mpImplA = mpImplB = nullptr; + pImplA = pImplB = nullptr; fprintf (stderr, "OpenGL is not enabled: try SAL_FORCEGL=1\n"); return; } - mpImplA = getImpl(mxWinA); - mpImplB = getImpl(mxWinB); - assert (mpImplA && mpImplB); - mpA = mpImplA->GetOpenGLContext(); - mpB = mpImplB->GetOpenGLContext(); + pImplA = getImpl(mxWinA); + pImplB = getImpl(mxWinB); + assert (pImplA && pImplB); + mpA = pImplA->GetOpenGLContext(); + mpB = pImplB->GetOpenGLContext(); assert (mpA.is() && mpB.is()); assert (mpA != mpB); |