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/AliasEditModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AliasEditModel.cpp') diff --git a/src/AliasEditModel.cpp b/src/AliasEditModel.cpp index 218c5b36..c6dc35c6 100644 --- a/src/AliasEditModel.cpp +++ b/src/AliasEditModel.cpp @@ -42,7 +42,7 @@ AliasEditingModel::AliasEditingModel(const std::string &rid, QObject *parent) } } - for (const auto &alias : qAsConst(aliases)) { + for (const auto &alias : std::as_const(aliases)) { fetchAliasesStatus(alias.alias); } fetchPublishedAliases(); @@ -148,7 +148,7 @@ void AliasEditingModel::addAlias(QString newAlias) { const auto aliasStr = newAlias.toStdString(); - for (const auto &e : qAsConst(aliases)) { + for (const auto &e : std::as_const(aliases)) { if (e.alias == aliasStr) { return; } -- cgit 1.4.1