From 73e73f46eaff4f2236b31ed5858738c6b5e26ea3 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 6 Apr 2017 19:56:33 +0300 Subject: Use const refs for the deserialized data --- src/MatrixClient.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/MatrixClient.cc') diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 5510b6d9..725aede6 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -42,10 +42,6 @@ MatrixClient::MatrixClient(QString server, QObject *parent) connect(this, SIGNAL(finished(QNetworkReply *)), this, SLOT(onResponse(QNetworkReply *))); } -MatrixClient::~MatrixClient() -{ -} - void MatrixClient::onVersionsResponse(QNetworkReply *reply) { reply->deleteLater(); @@ -289,7 +285,7 @@ void MatrixClient::sync() reply->setProperty("endpoint", Endpoint::Sync); } -void MatrixClient::sendTextMessage(QString roomid, QString msg) +void MatrixClient::sendTextMessage(const QString &roomid, const QString &msg) { QUrlQuery query; query.addQueryItem("access_token", token_); -- cgit 1.5.1