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:
authorMaxim Pimenov <m@maps.me>2016-08-02 18:51:46 +0300
committerMaxim Pimenov <m@maps.me>2016-08-03 13:08:24 +0300
commit0f3d6d4ec984826de87635759a3a6afff6df0823 (patch)
treeb0020f210971ab1478df84c2642e2bd8d780e96f /search/geocoder.hpp
parentbedde4511c4e69248f1381e1db481cdc51a99999 (diff)
[search] Fixed a crash occurring when searching for a deleted or obsolete feature.
Diffstat (limited to 'search/geocoder.hpp')
-rw-r--r--search/geocoder.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/search/geocoder.hpp b/search/geocoder.hpp
index 980bae0916..f74105f157 100644
--- a/search/geocoder.hpp
+++ b/search/geocoder.hpp
@@ -270,7 +270,8 @@ private:
// This is a faster wrapper around SearchModel::GetSearchType(), as
// it uses pre-loaded lists of streets and villages.
- SearchModel::SearchType GetSearchTypeInGeocoding(BaseContext const & ctx, uint32_t featureId);
+ WARN_UNUSED_RESULT bool GetSearchTypeInGeocoding(BaseContext const & ctx, uint32_t featureId,
+ SearchModel::SearchType & searchType);
Index const & m_index;