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:
authorvng <viktor.govako@gmail.com>2012-02-16 16:31:23 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:34:09 +0300
commit7544c46f04889fcc8dac1afe01a570b1a2731056 (patch)
tree11877ce05c7092ac9248730c5856ada66a4a81b7 /indexer/feature_data.hpp
parentfe18fbfd85cdf95ab3c7c95104550d6c818b6cc6 (diff)
Replace some code with std::find algorithm.
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r--indexer/feature_data.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp
index fe208e6238..85b81f5565 100644
--- a/indexer/feature_data.hpp
+++ b/indexer/feature_data.hpp
@@ -81,11 +81,7 @@ namespace feature
inline bool Has(uint32_t t) const
{
- for (size_t i = 0; i < m_size; ++i)
- if (t == m_types[i])
- return true;
-
- return false;
+ return find(m_types, m_types + m_size, t);
}
//@}