From 0c23eaa4bab9f06dacb16aee2cb8701f328c61b9 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 30 Sep 2015 14:23:00 -0700 Subject: [PATCH] fix variable shadowing in image_filter unit test --- test/unit/imaging/image_filter.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/unit/imaging/image_filter.cpp b/test/unit/imaging/image_filter.cpp index 79576a4b0..8d41ccbe2 100644 --- a/test/unit/imaging/image_filter.cpp +++ b/test/unit/imaging/image_filter.cpp @@ -401,21 +401,21 @@ SECTION("test colorize-alpha - parsing correct input") { mapnik::filter::colorize_alpha const & ca = mapnik::util::get(f.front()); { - mapnik::filter::color_stop const & s = ca[0]; - CHECK( s.color.alpha() == 0xff ); - CHECK( s.color.red() == 0x00 ); - CHECK( s.color.green() == 0x00 ); - CHECK( s.color.blue() == 0xff ); - CHECK( s.offset == 0.0 ); + mapnik::filter::color_stop const & s2 = ca[0]; + CHECK( s2.color.alpha() == 0xff ); + CHECK( s2.color.red() == 0x00 ); + CHECK( s2.color.green() == 0x00 ); + CHECK( s2.color.blue() == 0xff ); + CHECK( s2.offset == 0.0 ); } { - mapnik::filter::color_stop const & s = ca[1]; - CHECK( s.color.alpha() == 0xff ); - CHECK( s.color.red() == 0x00 ); - CHECK( s.color.green() == 0xff ); - CHECK( s.color.blue() == 0x00 ); - CHECK( s.offset == 1.0 ); + mapnik::filter::color_stop const & s2 = ca[1]; + CHECK( s2.color.alpha() == 0xff ); + CHECK( s2.color.red() == 0x00 ); + CHECK( s2.color.green() == 0xff ); + CHECK( s2.color.blue() == 0x00 ); + CHECK( s2.offset == 1.0 ); } } // END SECTION