From 42e31faaf5c8d2202238bb5024101a59edd7e710 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Sun, 5 Aug 2012 15:35:43 +0200 Subject: [PATCH] Reindent code. --- plugins/input/osm/osm_featureset.cpp | 42 ++++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/plugins/input/osm/osm_featureset.cpp b/plugins/input/osm/osm_featureset.cpp index b1e3e0267..2a172eabd 100644 --- a/plugins/input/osm/osm_featureset.cpp +++ b/plugins/input/osm/osm_featureset.cpp @@ -83,29 +83,29 @@ feature_ptr osm_featureset::next() } if (!cur_item) return feature_ptr(); - feature = feature_factory::create(ctx_, feature_id_); - ++feature_id_; - geometry_type* geom; - if (static_cast(cur_item)->is_polygon()) - { - geom = new geometry_type(mapnik::Polygon); - } - else - { - geom = new geometry_type(mapnik::LineString); - } + feature = feature_factory::create(ctx_, feature_id_); + ++feature_id_; + geometry_type* geom; + if (static_cast(cur_item)->is_polygon()) + { + geom = new geometry_type(mapnik::Polygon); + } + else + { + geom = new geometry_type(mapnik::LineString); + } - geom->move_to(static_cast(cur_item)->nodes[0]->lon, - static_cast(cur_item)->nodes[0]->lat); + geom->move_to(static_cast(cur_item)->nodes[0]->lon, + static_cast(cur_item)->nodes[0]->lat); - for (unsigned int count = 1; - count < static_cast(cur_item)->nodes.size(); - count++) - { - geom->line_to(static_cast(cur_item)->nodes[count]->lon, - static_cast(cur_item)->nodes[count]->lat); - } - feature->add_geometry(geom); + for (unsigned int count = 1; + count < static_cast(cur_item)->nodes.size(); + count++) + { + geom->line_to(static_cast(cur_item)->nodes[count]->lon, + static_cast(cur_item)->nodes[count]->lat); + } + feature->add_geometry(geom); } else { MAPNIK_LOG_FATAL(osm_featureset) << "Current item is neither node nor way.\n";