ui: clean indexed header path selection
* for CDB projects the selection dialog for the indexed header paths now discards all paths that are subdirectories of other entries
This commit is contained in:
@@ -166,8 +166,7 @@ std::vector<T> utility::unique(const std::vector<T>& a)
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<T> r;
|
||||
r.reserve(i);
|
||||
std::vector<T> r(i, T());
|
||||
for (const std::pair<T, size_t>& p : unique)
|
||||
{
|
||||
r[p.second] = p.first;
|
||||
|
||||
Reference in New Issue
Block a user