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

@@ -6,6 +6,7 @@
*/
#include "handler_san_nine_liner.h"
#include <utility>
#include "object_san_nine_liner.h"
#include "object_san_category_line.h"
#include "san_category_line_json.h"
@@ -75,7 +76,7 @@ bool HandlerSanNineLiner::init()
}
// publish
for (ObjectSanNineLiner *objSan : qAsConst(m_mapObjectSanNineLiner))
for (ObjectSanNineLiner *objSan : std::as_const(m_mapObjectSanNineLiner))
objSan->onPublishData();
return true;
@@ -142,7 +143,7 @@ void HandlerSanNineLiner::onSanNineLinerModifyRequest(const rti::core::SampleIde
QVector<Database::SanCategoryLine> linesCategory = SanCategoryLine::fromJson(request.lines, data.id);
INFO_LOG(m_logger) << "LinesCategory count: " << linesCategory.count();
for (Database::SanCategoryLine cl : qAsConst(linesCategory))
for (Database::SanCategoryLine cl : std::as_const(linesCategory))
{
ObjectSanCategoryLine *ifsCl(new ObjectSanCategoryLine(m_ddsHandler, m_db));
ret = ifsCl->createObject(cl);