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:
authorIlya Zverev <zverik@textual.ru>2016-05-18 16:04:42 +0300
committerIlya Zverev <zverik@textual.ru>2016-05-18 18:42:06 +0300
commita25e16e88ebc9b46002d643369c1c97b650efea0 (patch)
treee9b5a3fd4caf55ee5b4ecb6e7e997ccdb85a715b /indexer/ftypes_matcher.cpp
parente56584a1a119d8fe3697042a777d30ff554690d0 (diff)
[booking] Use actual values for rendering hotels
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r--indexer/ftypes_matcher.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index dd2b8c547e..f8ff0d8a4d 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -332,20 +332,7 @@ IsLocalityChecker const & IsLocalityChecker::Instance()
IsBookingChecker::IsBookingChecker()
{
Classificator const & c = classif();
- char const * arr[][3] = {
- { "tourism", "alpine_hut", "booking" },
- { "tourism", "apartment", "booking" },
- { "tourism", "camp_site", "booking" },
- { "tourism", "chalet", "booking" },
- { "tourism", "guest_house", "booking" },
- { "tourism", "hostel", "booking" },
- { "tourism", "hotel", "booking" },
- { "tourism", "motel", "booking" },
- { "tourism", "resort", "booking" }
- };
-
- for (size_t i = 0; i < ARRAY_SIZE(arr); ++i)
- m_types.push_back(c.GetTypeByPath(vector<string>(arr[i], arr[i] + 3)));
+ m_types.push_back(c.GetTypeByPath({ "sponsored", "booking" }));
}
IsBookingChecker const & IsBookingChecker::Instance()