forked from organicmaps/organicmaps
Review fix
This commit is contained in:
parent
671560f497
commit
d8d41215c5
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue