From a5cb15e6547dc88f8cb40748f1a29cf9d6763240 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Wed, 27 Jan 2016 16:12:13 +0300 Subject: [PATCH] Review fixes. --- generator/towns_dumper.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/generator/towns_dumper.hpp b/generator/towns_dumper.hpp index 74c292c40b..61ec3d9991 100644 --- a/generator/towns_dumper.hpp +++ b/generator/towns_dumper.hpp @@ -27,14 +27,8 @@ public: string key(tag.key), value(tag.value); if (key == "population") { - try - { - strings::to_uint64(value, population); - } - catch (std::invalid_argument const &) - { + if (!strings::to_uint64(value, population)) continue; - } } else if (key == "capital" && value == "yes") {