From d0a07b665f25d95f379744ac5939d9ec5ab18da1 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 9 Apr 2017 21:25:23 +0200 Subject: [PATCH] Fix MSVC14 warnings about shadowed variables in wxSTC Just to suppress harmless warnings. --- src/stc/PlatWX.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index cbbdc9e9ab..7d3ca2e426 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -388,13 +388,13 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, // TODO: do something with cornerSize wxUnusedVar(cornerSize); - int x, y; wxRect r = wxRectFromPRectangle(rc); wxBitmap bmp(r.width, r.height, 32); // This block is needed to ensure that the changes done to the bitmap via // pixel data object are committed before the bitmap is drawn. { + int px, py; wxAlphaPixelData pixData(bmp); // Set the fill pixels @@ -404,9 +404,9 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, int blue = cdf.GetBlue(); wxAlphaPixelData::Iterator p(pixData); - for (y=0; y