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 "basics_unit_test.h"
#include <utility>
#include <nglapplication/nglcoreapplication.h>
#include <AreaEffectSimulation/aes.hpp>
@@ -183,6 +184,7 @@ struct has_memberDouble<ObjectINT> {
template < typename T, typename std::enable_if < has_memberDouble<T>::value, int >::type = 0 >
void getFilterType(const T &obj)
{
Q_UNUSED(obj);
qCritical() << " HasRequestId";
// sendErrorInternal(request.errorSlot, reason, request.uniqueId, request.sample.data().requestId());
}
@@ -191,6 +193,7 @@ void getFilterType(const T &obj)
template < typename T, typename std::enable_if < !has_memberDouble<T>::value, int >::type = 0 >
void getFilterType(const T &obj)
{
Q_UNUSED(obj);
qCritical() << " ! HasRequestId";
// sendErrorInternal(request.errorSlot, reason, request.uniqueId, -1);
}
@@ -246,7 +249,7 @@ void UnitTestBasics::test_fireTimer10()
QStringList logSl1 = ft.getLogHistorie();
QVERIFY2(logSl1.size() == 1, "getCommandHistorie failed");
for (const auto &log : qAsConst(logSl1))
for (const auto &log : std::as_const(logSl1))
NOTICE_LOG(m_logger) << "log ='" << log << "'";
}
@@ -319,7 +322,7 @@ void UnitTestBasics::test_fireTimer20()
// QList<QVariant> arguments = spyStateChanged.takeFirst(); // take the first signal
// NOTICE_LOG(m_logger) << " spyStateChanged.count() " << spyStateChanged.count();
// for (const QList<QVariant> &argument : qAsConst(spyStateChanged))
// for (const QList<QVariant> &argument : std::as_const(spyStateChanged))
// NOTICE_LOG(m_logger) << " spyStateChanged . argument " << argument.first().toInt();
// check order of signal paramter: