fix Warning
This commit is contained in:
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);
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "object_criterium.h"
|
||||
#include <utility>
|
||||
#include "object_evaluation_element.h"
|
||||
|
||||
namespace Evaluations
|
||||
@@ -55,7 +56,7 @@ Core::FunctionReplyObject ObjectCriterium::removeObject()
|
||||
if (!m_db->removeEvlCriterium(m_data.id))
|
||||
return Core::FunctionReplyObject(m_data.id, tr_lts("dds", "EvlCriterium with id %1 can not be removed")).arg(m_data.id);
|
||||
|
||||
for (ObjectEvaluationElement *oee : qAsConst(m_elementsMap))
|
||||
for (ObjectEvaluationElement *oee : std::as_const(m_elementsMap))
|
||||
oee->removeObject();
|
||||
qDeleteAll(m_elementsMap);
|
||||
m_elementsMap.clear();
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "san_category_line_json.h"
|
||||
#include <utility>
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QDebug>
|
||||
@@ -54,7 +55,7 @@ QVector<Database::SanCategoryLine> SanCategoryLine::fromJson(const std::string &
|
||||
QJsonDocument SanCategoryLine::toJson(std::vector<Database::SanCategoryLine> vecCategoryLines)
|
||||
{
|
||||
QJsonArray arr;
|
||||
for (const Database::SanCategoryLine &cl : qAsConst(vecCategoryLines))
|
||||
for (const Database::SanCategoryLine &cl : std::as_const(vecCategoryLines))
|
||||
{
|
||||
QJsonObject obj;
|
||||
obj[QStringLiteral("id")] = cl.id;
|
||||
|
||||
Reference in new issue
Block a user