Pass some string arguments as const reference, no need to be writeable

parent e9da0b3f
......@@ -421,7 +421,7 @@ NickInfoPtr NicksOnline::getOnlineNickInfo(QString& networkName, QString& nickna
* @param groupName Server group name.
* @param nickname Nick name.
void NicksOnline::requestWhois(QString& networkName, QString& nickname)
void NicksOnline::requestWhois(const QString& networkName, const QString& nickname)
Application* konvApp = Application::instance();
const QList<Server*> serverList = konvApp->getConnectionManager()->getServerList();
......@@ -199,7 +199,7 @@ class NicksOnline : public ChatWindow
* @param groupName Server group name.
* @param nickname Nick name.
void requestWhois(QString& networkName, QString& nickname);
void requestWhois(const QString& networkName, const QString& nickname);
* Updates the notify list based on the current state of the tree
......@@ -1682,7 +1682,7 @@ int Server::_send_internal(QString outputLine)
return sout;
void Server::toServer(QString&s, IRCQueue* q)
void Server::toServer(const QString& s, IRCQueue* q)
int sizesent = _send_internal(s);
......@@ -573,7 +573,7 @@ class Server : public QObject
void incoming();
void processIncomingData();
/// Sends the QString to the socket. No longer has any internal concept of queueing
void toServer(QString&, IRCQueue *);
void toServer(const QString&, IRCQueue *);
/// Because KBufferedSocket has no closed(int) signal we use this slot to call broken(0)
void closed();
void broken(QAbstractSocket::SocketError error);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment