refactor: make DaemonIpcServer::writeToClietnSocket const
This commit is contained in:
@ -208,7 +208,7 @@ void DaemonIpcServer::processCommand(QLocalSocket *&clientSocket, const QStringL
|
||||
writeToClientSocket(clientSocket, kAckMessage);
|
||||
}
|
||||
|
||||
void DaemonIpcServer::writeToClientSocket(QLocalSocket *&clientSocket, const QString &message)
|
||||
void DaemonIpcServer::writeToClientSocket(QLocalSocket *&clientSocket, const QString &message) const
|
||||
{
|
||||
QByteArray messageData = message.toUtf8() + '\n';
|
||||
qint64 bytesWritten = clientSocket->write(messageData);
|
||||
|
||||
@ -44,7 +44,7 @@ private:
|
||||
* \param clientSocket The client socket to write to.
|
||||
* \param message The message to write (without trailing newline).
|
||||
*/
|
||||
void writeToClientSocket(QLocalSocket *&clientSocket, const QString &message);
|
||||
void writeToClientSocket(QLocalSocket *&clientSocket, const QString &message) const;
|
||||
|
||||
private Q_SLOTS:
|
||||
void handleNewConnection();
|
||||
|
||||
Reference in New Issue
Block a user