diff options
author | Maxim Pimenov <m@maps.me> | 2016-04-26 17:02:16 +0300 |
---|---|---|
committer | Maxim Pimenov <m@maps.me> | 2016-04-26 18:54:48 +0300 |
commit | 9243f3130a86b17f140399d26fe24a5ee124a64f (patch) | |
tree | 60ba1c5f803a7073de27eb73ca1045b304466dce /indexer/categories_holder.hpp | |
parent | 360bafbc2907788a3893792fb6dd366d3eb48e44 (diff) |
Review fixes.
Diffstat (limited to 'indexer/categories_holder.hpp')
-rw-r--r-- | indexer/categories_holder.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/categories_holder.hpp b/indexer/categories_holder.hpp index 68b543e003..bba60a738c 100644 --- a/indexer/categories_holder.hpp +++ b/indexer/categories_holder.hpp @@ -60,8 +60,8 @@ public: template <class ToDo> void ForEachTypeAndCategory(ToDo && toDo) const { - for (IteratorT i = m_type2cat.begin(); i != m_type2cat.end(); ++i) - toDo(i->first, *i->second); + for (auto const it : m_type2cat) + toDo(it.first, *it.second); } template <class ToDo> |