Skip to content

Commit 1790d14

Browse files
committed
don't initialize variable twice
1 parent 200debd commit 1790d14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/overpass_api/statements/area_query.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ bool Area_Constraint::delivers_data(Resource_Manager& rman)
289289
{
290290
int counter = 0;
291291

292+
// Count the indicies of the input areas
292293
if (!area->areas_from_input())
293294
{
294295
Block_Backend< Uint31_Index, Area_Skeleton > area_locations_db
@@ -307,9 +308,6 @@ bool Area_Constraint::delivers_data(Resource_Manager& rman)
307308
if (mit == rman.sets().end())
308309
return true;
309310

310-
// Count the indicies of the input areas
311-
int counter = 0;
312-
313311
for (map< Uint31_Index, vector< Area_Skeleton > >::const_iterator it = mit->second.areas.begin();
314312
it != mit->second.areas.end(); ++it)
315313
{

0 commit comments

Comments
 (0)