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

@@ -14,11 +14,11 @@
namespace TrainingAreaBaseOC
{
TxDdlHandler::TxDdlHandler() : m_state(DdlState::NotStarted)
TxDdlHandler::TxDdlHandler() : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_state(DdlState::NotStarted)
, m_segmentToggle(0)
, m_sentCnt(0)
, m_responseTimer(new QTimer(this)),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
, m_responseTimer(new QTimer(this)) {
m_responseTimer->setInterval(1000);
m_responseTimer->setSingleShot(true);
connect(m_responseTimer, &QTimer::timeout, this, &TxDdlHandler::sendAbortOrRestartTimeout);
@@ -12,9 +12,9 @@
namespace TrainingAreaBaseOC
{
ConnectionHandlerSerial::ConnectionHandlerSerial() : m_spQuerry(new LtsSerialPortQuerry::LtsSerialPortQuerry(this))
, m_receiveTimeoutTimer(new QTimer(this)),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
ConnectionHandlerSerial::ConnectionHandlerSerial() : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_spQuerry(new LtsSerialPortQuerry::LtsSerialPortQuerry(this))
, m_receiveTimeoutTimer(new QTimer(this)) {
connect(m_spQuerry, &LtsSerialPortQuerry::LtsSerialPortQuerry::connectionEstablished, this, &ConnectionHandlerSerial::open);
m_spQuerry->restartQuerry();
m_receiveTimeoutTimer->setInterval(5000);
@@ -12,8 +12,8 @@
namespace TrainingAreaBaseOC
{
ConnectionHandlerTcp::ConnectionHandlerTcp() : m_timer(new QTimer(this)),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
ConnectionHandlerTcp::ConnectionHandlerTcp() : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_timer(new QTimer(this)) {
m_timer->setInterval(5000);
connect(m_timer, &QTimer::timeout, this, &ConnectionHandlerTcp::open);
}
@@ -15,14 +15,14 @@ using namespace NGL;
namespace TrainingAreaBaseOC
{
ConnectionHandlerTcpTtci::ConnectionHandlerTcpTtci() : m_messageDataStart(true)
ConnectionHandlerTcpTtci::ConnectionHandlerTcpTtci() : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_messageDataStart(true)
, m_wirkfeldDataStart(true)
, m_wirkfeldMultiplex(0)
, m_sendingData(false)
, m_segmentToggle(0)
, m_canDevice(new Device(this))
, m_canChannel(new Channel(QLatin1Char('@'), true, this)),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
, m_canChannel(new Channel(QLatin1Char('@'), true, this)) {
connect(m_canChannel, &Channel::dataAvailable, this, &ConnectionHandlerTcpTtci::slotReadCanFrame);
connect(m_canChannel, &Channel::disconnectedFromEq, this, &ConnectionHandlerTcpTtci::disconnectedFromEq);
}
@@ -16,6 +16,7 @@ namespace TrainingAreaBaseOC
MainHandler::MainHandler(QObject *parent)
: QObject(parent)
, m_logger(getLogger("MainHandler"))
, m_aesDtc(nullptr)
, m_aesFtc(nullptr)
, m_pdmDtc(nullptr)
@@ -25,7 +26,6 @@ MainHandler::MainHandler(QObject *parent)
, m_rxHandler(nullptr)
, m_ftsHandler(nullptr)
, m_websocketHandler(nullptr)
, m_logger(getLogger("MainHandler"))
{}
MainHandler::~MainHandler()
@@ -16,10 +16,10 @@ RecvFromDdsFts::RecvFromDdsFts(MainHandler *mainHandler)
, Interface::Fts::SendTechnicalStateOcRequestHandler(mainHandler->dds()->ftsTaboc())
, TrainingAreaBase::Interface::Fts::SendOcDataRequestHandler(mainHandler->dds()->ftsTab())
, TrainingAreaBase::Interface::Fts::SendFireSmokeMarkerDataRequestHandler(mainHandler->dds()->ftsTab())
, m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_ftsTaboc(mainHandler->dds()->ftsTaboc())
, m_ftsTab(mainHandler->dds()->ftsTab())
, m_txCallback(mainHandler->txHandler())
, m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{}
void RecvFromDdsFts::onDemandCyclicPositionsRequest(const rti::core::SampleIdentity &cookie, const DemandCyclicPositionsRequest &request)
@@ -12,11 +12,11 @@
namespace TrainingAreaBaseOC
{
SendToDds::SendToDds(MainHandler *mainHandler) : m_dtsTaboc(mainHandler->dds()->dtsTaboc())
SendToDds::SendToDds(MainHandler *mainHandler) : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_dtsTaboc(mainHandler->dds()->dtsTaboc())
, m_dtsTab(mainHandler->dds()->dtsTab())
, m_utmCoord(LtsCoordTrans::UtmCoordinate())
, m_idToSend(1),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {}
, m_idToSend(1) {}
void SendToDds::rxData(const OcTelegrams::Display &inData)
{
@@ -10,10 +10,10 @@ namespace TrainingAreaBaseOC
{
Channel::Channel(QChar channel, bool bIsBinary, QObject *parent) : QObject(parent)
, m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("SCTT.Channel"))
, m_channel(channel)
, m_bIsBinary(bIsBinary)
, m_device(nullptr)
, m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("SCTT.Channel")) {}
, m_device(nullptr) {}
void Channel::setDevice(Device *dev)
{
@@ -11,12 +11,12 @@
namespace TrainingAreaBaseOC
{
Device::Device(QObject *parent, bool tcpMode) : QObject(parent)
, m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("TTCI.Device"))
, m_spQuerry(new LtsSerialPortQuerry::LtsSerialPortQuerry(this))
, m_socket(new QTcpSocket(this))
, m_restartTimer(new QTimer(this))
, m_receiveTimeoutTimer(new QTimer(this))
, m_tcpMode(tcpMode)
, m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("TTCI.Device")) {
, m_tcpMode(tcpMode) {
connect(m_spQuerry, &LtsSerialPortQuerry::LtsSerialPortQuerry::connectionEstablished, this, &Device::open);
m_spQuerry->restartQuerry();