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:
authorSergey Yershov <yershov@corp.mail.ru>2015-12-24 15:11:52 +0300
committerSergey Yershov <yershov@corp.mail.ru>2015-12-24 15:11:52 +0300
commitd8d41215c563f231eb97428bed6a30716ca7a04c (patch)
tree5d5bdaa5228f3c05ebac819c30e5d4088bd2c2b4 /indexer/feature_data.cpp
parent671560f497f3413c48470d3b66642f806e4c08f0 (diff)
Review fix
Diffstat (limited to 'indexer/feature_data.cpp')
-rw-r--r--indexer/feature_data.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indexer/feature_data.cpp b/indexer/feature_data.cpp
index 786878fb40..ffaf297270 100644
--- a/indexer/feature_data.cpp
+++ b/indexer/feature_data.cpp
@@ -362,8 +362,7 @@ bool FeatureParams::FinishAddingTypes()
// Remove duplicated types.
sort(newTypes.begin(), newTypes.end());
- auto last = unique(newTypes.begin(), newTypes.end());
- newTypes.erase(last, newTypes.end());
+ newTypes.erase(unique(newTypes.begin(), newTypes.end()), newTypes.end());
m_Types.swap(newTypes);