From 45ecb71444143a6f7ae8d2ae21a1b071fc708616 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 13 Oct 2023 23:28:57 +0200 Subject: Qt6.6 compatibility --- src/timeline/EventDelegateChooser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/timeline/EventDelegateChooser.cpp') diff --git a/src/timeline/EventDelegateChooser.cpp b/src/timeline/EventDelegateChooser.cpp index 4367bb9c..19a5357a 100644 --- a/src/timeline/EventDelegateChooser.cpp +++ b/src/timeline/EventDelegateChooser.cpp @@ -242,7 +242,7 @@ EventDelegateChooser::DelegateIncubator::reset(QString id) .toInt(); this->oldType = role; - for (const auto choice : qAsConst(chooser.choices_)) { + for (const auto choice : std::as_const(chooser.choices_)) { const auto &choiceValue = choice->roleValues(); if (choiceValue.contains(role) || choiceValue.empty()) { // nhlog::ui()->debug( @@ -288,7 +288,7 @@ EventDelegateChooser::DelegateIncubator::statusChanged(QQmlIncubator::Status sta chooser.polish(); } else if (status == QQmlIncubator::Error) { auto errors_ = errors(); - for (const auto &e : qAsConst(errors_)) + for (const auto &e : std::as_const(errors_)) nhlog::ui()->error("Error instantiating delegate: {}", e.toString().toStdString()); } } -- cgit 1.5.1