From 6680dbf906bff9005ecbada1f5ba7ac1f7d20be3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Feb 2016 03:15:18 +0100 Subject: [PATCH] Fix MSVC14 warning about a shadowed variable in the drawing sample The warning is harmless but avoid it nevertheless. --- samples/drawing/drawing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index e9752cd3ba..50a0bb990c 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -1253,14 +1253,14 @@ void MyCanvas::DrawSplines(wxDC& dc) const wxPoint center( R + 20, R + 20 ); const int angles[7] = { 0, 10, 33, 77, 13, 145, 90 }; const int radii[5] = { 100 , 59, 85, 33, 90 }; - const int n = 200; - wxPoint pts[n]; + const int numPoints = 200; + wxPoint pts[numPoints]; // background spline calculation unsigned int radius_pos = 0; unsigned int angle_pos = 0; int angle = 0; - for ( int i = 0; i < n; i++ ) + for ( int i = 0; i < numPoints; i++ ) { angle += angles[ angle_pos ]; int r = R * radii[ radius_pos ] / 100;