diff options
author | Maxim Pimenov <m@maps.me> | 2018-12-13 17:06:05 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-12-13 17:40:37 +0300 |
commit | 543e7ca6a1c7d95b71f1c219da70fdbc0a2860ea (patch) | |
tree | 08deb3deaebb83d7bc6efd747642b7ef68a7ea68 /geocoder | |
parent | ef165be9f2a08b816cd051f7d7b9bfce648a6c96 (diff) |
Review fixes.
Diffstat (limited to 'geocoder')
-rw-r--r-- | geocoder/geocoder_cli/geocoder_cli.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/geocoder/geocoder_cli/geocoder_cli.cpp b/geocoder/geocoder_cli/geocoder_cli.cpp index bf7da7b589..e46475b1a1 100644 --- a/geocoder/geocoder_cli/geocoder_cli.cpp +++ b/geocoder/geocoder_cli/geocoder_cli.cpp @@ -28,9 +28,8 @@ void PrintResults(Hierarchy const & hierarchy, vector<Result> const & results) { if (FLAGS_top >= 0 && i >= FLAGS_top) break; - Hierarchy::Entry const * e = hierarchy.GetEntryForOsmId(results[i].m_osmId); cout << " " << DebugPrint(results[i]); - if (e != nullptr) + if (auto const && e = hierarchy.GetEntryForOsmId(results[i].m_osmId)) cout << " " << DebugPrint(e->m_address); cout << endl; } |