Commit 2ff93844 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

utils: prefer using stl than custom functions

parent b9622521
......@@ -75,7 +75,7 @@ static int kIndexOf(const Q& list, W func)
template <typename Q, typename W>
static bool kContains(const Q& list, W func)
{ return kIndexOf(list, func) != -1; }
{ return std::any_of(list.begin(), list.end(), func); }
template <typename T>
static QVector<T> kSetToVector(const QSet<T> & set)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment