forked from qt-creator/qt-creator
QmakeProjectImporter: Prepare for multiple concurrent imports
Fix logic around temporary qt versions. We want essentially shared ownership of kits on the temporary qt version. Change-Id: Ic8c748aa2b04afb5a30444563b3fc2f4272ca47c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -64,6 +64,12 @@ bool anyOf(const T &container, F predicate)
|
||||
return std::any_of(container.begin(), container.end(), predicate);
|
||||
}
|
||||
|
||||
template<typename T, typename F>
|
||||
int count(const T &container, F predicate)
|
||||
{
|
||||
return std::count_if(container.begin(), container.end(), predicate);
|
||||
}
|
||||
|
||||
//////////////////
|
||||
// allOf
|
||||
/////////////////
|
||||
|
||||
Reference in New Issue
Block a user