From 98f905485d5e8f19e06306d39aa6887e969969c7 Mon Sep 17 00:00:00 2001 From: EndrII Date: Sat, 28 Oct 2023 21:32:58 +0200 Subject: [PATCH] fix qt 6.6 warnings --- Patronum/src/Private/controllerprivate.cpp | 2 +- Patronum/src/Private/serviceprivate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Patronum/src/Private/controllerprivate.cpp b/Patronum/src/Private/controllerprivate.cpp index 32bf8a6..2cb74a9 100644 --- a/Patronum/src/Private/controllerprivate.cpp +++ b/Patronum/src/Private/controllerprivate.cpp @@ -122,7 +122,7 @@ void ControllerPrivate::handleReceve(QByteArray data) { return; } - for (const auto& pkg: qAsConst(packages)) { + for (const auto& pkg: std::as_const(packages)) { if (!pkg.isValid()) { QuasarAppUtils::Params::log("Received invalid package!", diff --git a/Patronum/src/Private/serviceprivate.cpp b/Patronum/src/Private/serviceprivate.cpp index 8f379e4..4ef5379 100644 --- a/Patronum/src/Private/serviceprivate.cpp +++ b/Patronum/src/Private/serviceprivate.cpp @@ -202,7 +202,7 @@ void ServicePrivate::handleReceve(QByteArray data) { return; } - for (const auto &pkg: qAsConst(packages)) { + for (const auto &pkg: std::as_const(packages)) { if (!pkg.isValid()) { QuasarAppUtils::Params::log("receive package is not valid!", QuasarAppUtils::Warning);