Skip to content

Commit

Permalink
QmlDesigner: Fix compilation error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
marbub committed May 14, 2024
1 parent 2376e00 commit 76ec124
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ bool JsonCollectionParser::visit([[maybe_unused]] QmlJS::AST::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();
}

Expand All @@ -220,7 +220,7 @@ void JsonCollectionParser::checkPropertyUpdates(QStack<JsonKey> stack,
{
bool shouldUpdate = collectionPaths.contains(stack);
if (!shouldUpdate && !stack.isEmpty()) {
if (auto lastIndex = std::get_if<int>(&stack.top())) {
if (std::get_if<int>(&stack.top())) {
stack.pop();
shouldUpdate = collectionPaths.contains(stack);
}
Expand Down

0 comments on commit 76ec124

Please sign in to comment.