refactor: make DaemonIpcServer::writeToClietnSocket const
This commit is contained in:
parent
7831ba293a
commit
a78702d68f
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue