aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/ScintillaQt.cpp
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-01-03 09:26:07 +1100
committerNeil <nyamatongwe@gmail.com>2019-01-03 09:26:07 +1100
commit460d1f2722effac1908c8f6a0aa260f615cf463e (patch)
treeceae95cf8972514952a24217e09e87460fc65401 /qt/ScintillaEditBase/ScintillaQt.cpp
parent227d033a42d4c2c823b2dc792554a229112711a5 (diff)
downloadscintilla-mirror-460d1f2722effac1908c8f6a0aa260f615cf463e.tar.gz
Avoid shadowing of AutoSurface.
Diffstat (limited to 'qt/ScintillaEditBase/ScintillaQt.cpp')
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp
index 8aebb9521..804cd2dc0 100644
--- a/qt/ScintillaEditBase/ScintillaQt.cpp
+++ b/qt/ScintillaEditBase/ScintillaQt.cpp
@@ -701,9 +701,9 @@ void ScintillaQt::PartialPaint(const PRectangle &rect)
PRectangle rcClient = GetClientRectangle();
paintingAllText = rcPaint.Contains(rcClient);
- AutoSurface surface(this);
- Paint(surface, rcPaint);
- surface->Release();
+ AutoSurface surfacePaint(this);
+ Paint(surfacePaint, rcPaint);
+ surfacePaint->Release();
if (paintState == paintAbandoned) {
// FIXME: Failure to paint the requested rectangle in each