diff options
author | Neil <nyamatongwe@gmail.com> | 2019-01-03 09:26:07 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-01-03 09:26:07 +1100 |
commit | 0b4aa4e5307bbb76147d9b7c5b1feb062a4ca054 (patch) | |
tree | 39cb84d8c0c21119e5d0b873664e9cba96dab97c /qt/ScintillaEditBase/ScintillaQt.cpp | |
parent | 407889bc0fd381b1ff48c62f8b0d579b81f068b5 (diff) | |
download | scintilla-mirror-0b4aa4e5307bbb76147d9b7c5b1feb062a4ca054.tar.gz |
Backport: Avoid shadowing of AutoSurface.
Backport of changeset 7189:8eff2f26b0ee.
Diffstat (limited to 'qt/ScintillaEditBase/ScintillaQt.cpp')
-rw-r--r-- | qt/ScintillaEditBase/ScintillaQt.cpp | 6 |
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 |