Fix build.

This commit is contained in:
Sergey Magidovich 2017-06-20 19:07:35 +03:00 committed by Yuri Gorshenin
parent 23c7d33cfc
commit 7da3a5c85d

View file

@ -54,7 +54,7 @@ bool ReadRegionDataImpl(std::string const & countryName, RegionData & data)
data.Set(RegionData::Type::RD_TIMEZONE, timezone);
bool allow_housenames;
FromJSONObjectOptionalField(jsonData, "housenames", allow_housenames, false);
FromJSONObjectOptionalField(jsonData, "housenames", allow_housenames);
if (allow_housenames)
data.Set(RegionData::Type::RD_ALLOW_HOUSENAMES, "y");