summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-10-14 14:26:49 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:08 +0100
commit8fa83a3265e25b164cb11d598f1fbb49a7b8fbf1 (patch)
tree7fdcb93669022ad999a1ba71ad25ec40e6d08399 /vcl
parent5c4f872a77b9b0cd5f061c06c5b771c1aeff4c59 (diff)
fix warning
Change-Id: I6f0f278bae75bb5e0cd49523b4ce6c4918092412 warning: declaration of ‘graphics’ shadows a member of ‘SkiaFlushIdle’ [-Wshadow]
Diffstat (limited to 'vcl')
-rw-r--r--vcl/skia/gdiimpl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index c9936d675d66..246826b5f124 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -35,12 +35,12 @@
// Class that triggers flushing the backing buffer when idle.
class SkiaFlushIdle : public Idle
{
- SkiaSalGraphicsImpl* graphics;
+ SkiaSalGraphicsImpl* mpGraphics;
public:
- explicit SkiaFlushIdle(SkiaSalGraphicsImpl* graphics)
+ explicit SkiaFlushIdle(SkiaSalGraphicsImpl* pGraphics)
: Idle("skia idle swap")
- , graphics(graphics)
+ , mpGraphics(pGraphics)
{
// We don't want to be swapping before we've painted.
SetPriority(TaskPriority::POST_PAINT);
@@ -48,7 +48,7 @@ public:
virtual void Invoke() override
{
- graphics->performFlush();
+ mpGraphics->performFlush();
Stop();
SetPriority(TaskPriority::HIGHEST);
}