forked from qt-creator/qt-creator
Fix build with Qt 6's QList under QT_STRICT_QLIST_ITERATORS
modelnode.cpp:1395:91: error: no matching function for call to ‘Utils::span<const QmlDesigner::ModelNode>::span(QList<QmlDesigner::ModelNode>::const_iterator, QList<QmlDesigner::ModelNode>::const_iterator)’ Change-Id: Ide4dbd0777a44ed0870efffd173905d7eb32fa26 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Ali Kianian
parent
b2163f672f
commit
a61f8b02d3
@@ -1392,8 +1392,7 @@ ModelNode ModelNode::lowestCommonAncestor(const QList<ModelNode> &nodes)
|
|||||||
|
|
||||||
ModelNode accumulatedNode = nodes.first();
|
ModelNode accumulatedNode = nodes.first();
|
||||||
int accumulatedNodeDepth = -1;
|
int accumulatedNodeDepth = -1;
|
||||||
Utils::span<const ModelNode> nodesExceptFirst(nodes.constBegin() + 1, nodes.constEnd());
|
for (const ModelNode &node : Utils::span<const ModelNode>(nodes).subspan(1)) {
|
||||||
for (const ModelNode &node : nodesExceptFirst) {
|
|
||||||
accumulatedNode = QmlDesigner::lowestCommonAncestor(accumulatedNode,
|
accumulatedNode = QmlDesigner::lowestCommonAncestor(accumulatedNode,
|
||||||
node,
|
node,
|
||||||
accumulatedNodeDepth,
|
accumulatedNodeDepth,
|
||||||
|
Reference in New Issue
Block a user