fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+4
-3
@@ -8,6 +8,7 @@
|
||||
|
||||
|
||||
#include "web_socket_avs.h"
|
||||
#include <utility>
|
||||
#include "web_socket_server.h"
|
||||
#include "main_handler.h"
|
||||
#include "settings.h"
|
||||
@@ -388,7 +389,7 @@ void WebSocketAvs::openWebSocket()
|
||||
DEBUG_LOG(m_logger) << "openWebSocket";
|
||||
closeWebSocket();
|
||||
m_wsSocket = new QWebSocket;
|
||||
connect(m_wsSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error),
|
||||
connect(m_wsSocket, &QWebSocket::errorOccurred,
|
||||
this, &WebSocketAvs::onWebSocketError);
|
||||
connect(m_wsSocket, &QWebSocket::connected,
|
||||
this, &WebSocketAvs::onWebSocketConnected);
|
||||
@@ -564,7 +565,7 @@ void WebSocketAvs::onCleanUpDbInternal()
|
||||
|
||||
}
|
||||
|
||||
for (const AvsData &oldEntry : qAsConst(ntpRangeSortLocal))
|
||||
for (const AvsData &oldEntry : std::as_const(ntpRangeSortLocal))
|
||||
{
|
||||
const auto &item = collection.value(oldEntry.eventTime);
|
||||
|
||||
@@ -680,7 +681,7 @@ QMap<QString, QVector<AvsData>> WebSocketAvs::getAllInternalDbData()
|
||||
//qCritical() << "END select reading internal db ";
|
||||
DEBUG_LOG(m_logger) << "START Sync read local DB at " << QDateTime::fromMSecsSinceEpoch(m_lastUpdate).toString();
|
||||
int j = 0;
|
||||
for (const auto &dataI : qAsConst(dataVec))
|
||||
for (const auto &dataI : std::as_const(dataVec))
|
||||
{
|
||||
if (m_lastUpdate > 0 && dataI.sampleTime < m_lastUpdate)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user