diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-12-24 15:11:52 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2015-12-24 15:11:52 +0300 |
commit | d8d41215c563f231eb97428bed6a30716ca7a04c (patch) | |
tree | 5d5bdaa5228f3c05ebac819c30e5d4088bd2c2b4 /indexer/feature_data.cpp | |
parent | 671560f497f3413c48470d3b66642f806e4c08f0 (diff) |
Review fix
Diffstat (limited to 'indexer/feature_data.cpp')
-rw-r--r-- | indexer/feature_data.cpp | 3 |
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); |