forked from qt-creator/qt-creator
QmlDesigner: Support multiple module ids per type
The type will be use source id and name instead of module id and name as key. Task-number: QDS-5236 Task-number: QDS-5238 Change-Id: Ibc9c298dc0a6363b630173ec4981d574cecd02ff Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -99,6 +99,24 @@ bool set_intersection_compare(
|
||||
return false;
|
||||
}
|
||||
|
||||
template<class InputIt1, class InputIt2, class Callable, class Compare>
|
||||
void set_greedy_difference(
|
||||
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, Callable call, Compare comp)
|
||||
{
|
||||
while (first1 != last1 && first2 != last2) {
|
||||
if (comp(*first1, *first2)) {
|
||||
call(*first1++);
|
||||
} else if (comp(*first2, *first1)) {
|
||||
++first2;
|
||||
} else {
|
||||
++first1;
|
||||
}
|
||||
}
|
||||
|
||||
while (first1 != last1)
|
||||
call(*first1++);
|
||||
}
|
||||
|
||||
template<typename InputIt1, typename InputIt2, typename BinaryPredicate, typename Callable, typename Value>
|
||||
Value mismatch_collect(InputIt1 first1,
|
||||
InputIt1 last1,
|
||||
|
||||
Reference in New Issue
Block a user