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 @@
|
||||
* Created by Philipp Dassow, NLT, 30-11-2018
|
||||
*/
|
||||
#include "converter.h"
|
||||
#include <utility>
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
namespace SerialToTcpConverter
|
||||
@@ -47,7 +48,7 @@ Converter::Converter(QObject *parent)
|
||||
|
||||
Converter::~Converter()
|
||||
{
|
||||
for (auto socket : qAsConst(m_sockets))
|
||||
for (auto socket : std::as_const(m_sockets))
|
||||
{
|
||||
socket->close();
|
||||
socket->deleteLater();
|
||||
@@ -116,7 +117,7 @@ void Converter::readSerial()
|
||||
{
|
||||
const QByteArray ba = m_serialPort->readAll();
|
||||
INFO_LOG(m_logger) << "Read Serial: " << ba;
|
||||
for (QTcpSocket *socket : qAsConst(m_sockets))
|
||||
for (QTcpSocket *socket : std::as_const(m_sockets))
|
||||
{
|
||||
socket->write(ba);
|
||||
socket->flush();
|
||||
|
||||
Reference in new issue
Block a user