Pass primitive types by value (#935)

This commit is contained in:
Murat Seker
2020-08-08 13:09:15 +02:00
committed by GitHub
parent 5758b19cbc
commit c00d8e62fb
146 changed files with 505 additions and 505 deletions

View File

@@ -6,7 +6,7 @@
#include <QTcpSocket>
#include <QHostAddress>
JsonClientConnection::JsonClientConnection(QTcpSocket *socket, const bool& localConnection)
JsonClientConnection::JsonClientConnection(QTcpSocket *socket, bool localConnection)
: QObject()
, _socket(socket)
, _receiveBuffer()
@@ -53,7 +53,7 @@ qint64 JsonClientConnection::sendMessage(QJsonObject message)
return _socket->write(data.data(), data.size());
}
void JsonClientConnection::disconnected(void)
void JsonClientConnection::disconnected()
{
emit connectionClosed();
}

View File

@@ -23,7 +23,7 @@ public:
/// Constructor
/// @param socket The Socket object for this connection
///
JsonClientConnection(QTcpSocket * socket, const bool& localConnection);
JsonClientConnection(QTcpSocket * socket, bool localConnection);
signals:
void connectionClosed();

View File

@@ -73,7 +73,7 @@ void JsonServer::stop()
Info(_log, "Stopped");
}
void JsonServer::handleSettingsUpdate(const settings::type& type, const QJsonDocument& config)
void JsonServer::handleSettingsUpdate(settings::type type, const QJsonDocument& config)
{
if(type == settings::JSONSERVER)
{
@@ -113,7 +113,7 @@ void JsonServer::newConnection()
}
}
void JsonServer::closedConnection(void)
void JsonServer::closedConnection()
{
JsonClientConnection* connection = qobject_cast<JsonClientConnection*>(sender());
Debug(_log, "Connection closed");