diff options
author | Arsentiy Milchakov <a.milchakov@corp.mail.ru> | 2016-08-19 18:50:59 +0300 |
---|---|---|
committer | Arsentiy Milchakov <a.milchakov@corp.mail.ru> | 2016-08-19 18:50:59 +0300 |
commit | 003fa128b5c7d3e049f4bd95e3b68ab021d422c7 (patch) | |
tree | c6831d94c4dbec79f56120a785631a9e686a8353 /indexer/feature_data.hpp | |
parent | 8add28eba33004c47bed783e0ce54a8c5501b6a8 (diff) |
propagate FMD_INTERNET from type for MapObjects
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r-- | indexer/feature_data.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp index a813403f50..a44fde1b6f 100644 --- a/indexer/feature_data.hpp +++ b/indexer/feature_data.hpp @@ -66,10 +66,16 @@ namespace feature } /// Accumulation function. - inline void operator() (uint32_t type) + void Add(uint32_t type) { ASSERT_LESS(m_size, kMaxTypesCount, ()); - m_types[m_size++] = type; + if (m_size < kMaxTypesCount) + m_types[m_size++] = type; + } + + inline void operator() (uint32_t type) + { + Add(type); } /// @name Selectors. |