forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/12.0' into qds/dev
Change-Id: Iefea658312bba6675eadce23fb8dc92f9207ea0e
This commit is contained in:
@@ -1507,4 +1507,13 @@ void addToHash(QHash<Key, T> *result, const QHash<Key, T> &additionalContents)
|
||||
result->insert(additionalContents);
|
||||
}
|
||||
|
||||
// Workaround for missing information from QSet::insert()
|
||||
// Return type could be a pair like for std::set, but we never use the iterator anyway.
|
||||
template<typename T, typename U> [[nodiscard]] bool insert(QSet<T> &s, const U &v)
|
||||
{
|
||||
const int oldSize = s.size();
|
||||
s.insert(v);
|
||||
return s.size() > oldSize;
|
||||
}
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user