forked from qt-creator/qt-creator
QmlDesigner: Fix compilation error
Change-Id: Ia49491a7deae085460fe4498cbcc6727cc10db7b Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Ali Kianian <ali.kianian@qt.io>
This commit is contained in:
@@ -204,7 +204,7 @@ bool JsonCollectionParser::visit([[maybe_unused]] QmlJS::AST::PatternElementList
|
|||||||
|
|
||||||
void JsonCollectionParser::endVisit([[maybe_unused]] QmlJS::AST::PatternElementList *patternElementList)
|
void JsonCollectionParser::endVisit([[maybe_unused]] QmlJS::AST::PatternElementList *patternElementList)
|
||||||
{
|
{
|
||||||
if (auto curIndex = std::get_if<int>(&keyStack.top()))
|
if (std::get_if<int>(&keyStack.top()))
|
||||||
keyStack.pop();
|
keyStack.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ void JsonCollectionParser::checkPropertyUpdates(QStack<JsonKey> stack,
|
|||||||
{
|
{
|
||||||
bool shouldUpdate = collectionPaths.contains(stack);
|
bool shouldUpdate = collectionPaths.contains(stack);
|
||||||
if (!shouldUpdate && !stack.isEmpty()) {
|
if (!shouldUpdate && !stack.isEmpty()) {
|
||||||
if (auto lastIndex = std::get_if<int>(&stack.top())) {
|
if (std::get_if<int>(&stack.top())) {
|
||||||
stack.pop();
|
stack.pop();
|
||||||
shouldUpdate = collectionPaths.contains(stack);
|
shouldUpdate = collectionPaths.contains(stack);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user