Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoly Serdtcev <serdtcev@maps.me>2018-12-27 14:15:18 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-12-27 17:13:03 +0300
commit3a6e1f02bf70abc4eb57b7020a1d9eca64c98e58 (patch)
tree26a15d33f61b0f23b98653d1ef62e2d6091b97e9 /geocoder
parent026acdc0ba745b959dd357c5d9976d1813bba66f (diff)
[geocoder] Fix for review
Diffstat (limited to 'geocoder')
-rw-r--r--geocoder/hierarchy.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/geocoder/hierarchy.cpp b/geocoder/hierarchy.cpp
index 790f89a4e8..bff5558aa0 100644
--- a/geocoder/hierarchy.cpp
+++ b/geocoder/hierarchy.cpp
@@ -76,19 +76,13 @@ bool Hierarchy::Entry::DeserializeFromJSONImpl(json_t * const root, string const
{
Type const type = static_cast<Type>(i);
string const & levelKey = ToString(type);
- auto const * levelJson = base::GetJSONOptionalField(address, levelKey);
+ auto * levelJson = base::GetJSONOptionalField(address, levelKey);
if (!levelJson)
continue;
if (json_is_null(levelJson))
- {
- // Ignore buildings with out full address.
- if (Type::Building == type)
return false;
- continue;
- }
-
string levelValue;
FromJSON(levelJson, levelValue);
if (levelValue.empty())