fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "Server.h"
|
||||
#include <utility>
|
||||
|
||||
#include <QWebSocketServer>
|
||||
#include <QWebSocket>
|
||||
@@ -160,7 +161,7 @@ bool Server::init(quint16 port)
|
||||
|
||||
QVector<int> types;
|
||||
|
||||
for (const QString &s : qAsConst(typesStringList))
|
||||
for (const QString &s : std::as_const(typesStringList))
|
||||
{
|
||||
bool k = true;
|
||||
int type = s.toInt(&k);
|
||||
@@ -175,7 +176,7 @@ bool Server::init(quint16 port)
|
||||
QVector<Event> eventsToSend;
|
||||
|
||||
qint64 eventCount = 0;
|
||||
for (const Event &e : qAsConst(m_events))
|
||||
for (const Event &e : std::as_const(m_events))
|
||||
{
|
||||
if (e.time >= from && e.time <= to && (types.isEmpty() || types.contains(e.type)))
|
||||
{
|
||||
@@ -190,7 +191,7 @@ bool Server::init(quint16 port)
|
||||
|
||||
QJsonArray eventArray;
|
||||
|
||||
for (const Event &e : qAsConst(eventsToSend))
|
||||
for (const Event &e : std::as_const(eventsToSend))
|
||||
{
|
||||
QJsonObject eObj;
|
||||
|
||||
|
||||
Reference in new issue
Block a user