Fix -Wshadow warnings

This commit is contained in:
Dane Springmeyer 2013-01-04 11:06:03 -08:00
parent 098f58a206
commit 866597c8c3
3 changed files with 3 additions and 4 deletions

View file

@ -670,7 +670,7 @@ private:
}
index = 0;
for (typename std::vector<Box>::const_iterator it = boxes.begin();
for (it = boxes.begin();
it != boxes.end(); ++it, index++)
{
if (geometry::get<min_corner, D>(*it) >= highest_low && index != lowest_high_index)

View file

@ -368,7 +368,7 @@ void agg_renderer<T>::render_marker(pixel_position const& pos,
src.width(),
src.height(),
src.width()*4);
agg::pixfmt_rgba32_pre pixf(marker_buf);
agg::pixfmt_rgba32_pre marker_pixf(marker_buf);
typedef agg::image_accessor_clone<agg::pixfmt_rgba32_pre> img_accessor_type;
typedef agg::span_interpolator_linear<agg::trans_affine> interpolator_type;
typedef agg::span_image_filter_rgba_2x2<img_accessor_type,
@ -376,7 +376,7 @@ void agg_renderer<T>::render_marker(pixel_position const& pos,
typedef agg::renderer_scanline_aa_alpha<renderer_base,
agg::span_allocator<agg::rgba8>,
span_gen_type> renderer_type;
img_accessor_type ia(pixf);
img_accessor_type ia(marker_pixf);
interpolator_type interpolator(agg::trans_affine(p, 0, 0, width, height) );
span_gen_type sg(ia, interpolator, filter);
renderer_type rp(renb,sa, sg, unsigned(opacity*255));

View file

@ -153,7 +153,6 @@ void agg_renderer<T>::process(line_symbolizer const& sym,
}
typedef agg::renderer_scanline_aa_solid<renderer_base> renderer_type;
renderer_base renb(pixf);
renderer_type ren(renb);
ren.color(agg::rgba8_pre(r, g, b, int(a * stroke_.get_opacity())));
agg::scanline_u8 sl;