fix Warning

This commit is contained in:
berrux-dev committed 2026-10-03 09:20:13 +02:00
1 parent 593c221d23
commit 8345470273
316 files changed
+1246 -929

No files matched your search

@@ -7,6 +7,7 @@
*/
#include "group_handler.h"
#include <utility>
#include "group.h"
#include "heartbeat_listener.h"
#include "service_donator.h"
@@ -65,7 +66,7 @@ QVector<Group *> GroupHandler::groups() const
GroupScheme *GroupHandler::groupSchemeFromType(Core::ServiceGroupType type)
{
for (GroupScheme *scheme : qAsConst(m_groupSchemes))
for (GroupScheme *scheme : std::as_const(m_groupSchemes))
{
if (scheme->groupType == type)
return scheme;
@@ -240,7 +241,7 @@ Core::FunctionReplyObject GroupHandler::onStopAllForExercise(int domainId, int e
int cntStopped = 0;
int cntAlive = 0;
for (Group *group : qAsConst(m_groups))
for (Group *group : std::as_const(m_groups))
{
if (group->exercisePartitionId() == exercisePartitionId &&
group->domainId() == domainId)