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:
malte_langkabel
2017-07-24 17:08:43 +02:00
parent f2c7ecbbdf
commit 3a192c8089
2 changed files with 19 additions and 3 deletions
+1 -2
View File
@@ -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;