Use const refs for the deserialized data
This commit is contained in:
parent
5bcaaa3aa3
commit
73e73f46ea
19 changed files with 198 additions and 196 deletions
|
|
@ -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_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue