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:
Marco Bubke
2024-05-14 15:27:20 +02:00
parent 2376e008f7
commit 76ec124698

View File

@@ -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();
}
@@ -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);
}