mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Pass primitive types by value (#935)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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();
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user