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 "handler_group.h"
#include <utility>
#include "object_group.h"
#include "handler_operator.h"
#include "opm_db.h"
@@ -152,7 +153,7 @@ Core::FunctionReplyObject HandlerGroup::create(const GroupCreateRequest &request
{
Database::OpmGroup group;
group.name = QString::fromStdString(request.name);
for (const ObjectGroup *g : qAsConst(m_groupObjMap))
for (const ObjectGroup *g : std::as_const(m_groupObjMap))
{
if (g->name().compare(group.name, Qt::CaseInsensitive) == 0)
return Core::FunctionReplyObject(-1, tr_lts("dds", "Name '%1' already exists")).arg(group.name);
@@ -193,7 +194,7 @@ Core::FunctionReplyObject HandlerGroup::changeName(const OperatorManagement::Gro
group.name = QString::fromStdString(request.name);
group.description = QString::fromStdString(request.description);
for (const ObjectGroup *g : qAsConst(m_groupObjMap))
for (const ObjectGroup *g : std::as_const(m_groupObjMap))
{
if (g == ifs)
continue;