Commit 90ade1cb authored by Lasath Fernando's avatar Lasath Fernando Committed by David Edmundson
Browse files

constified MessagesModel::sendNewMessage()

parent ed83a4d1
......@@ -209,7 +209,7 @@ int MessagesModel::rowCount(const QModelIndex& parent) const
return d->messages.size();
}
void MessagesModel::sendNewMessage(QString message)
void MessagesModel::sendNewMessage(const QString &message)
{
if (message.isEmpty()) {
kWarning() << "Attempting to send empty string";
......
......@@ -66,7 +66,7 @@ Q_SIGNALS:
void popoutRequested();
public Q_SLOTS:
void sendNewMessage(QString message);
void sendNewMessage(const QString& message);
private Q_SLOTS:
void onMessageReceived(Tp::ReceivedMessage);
......
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