From f004c32ae4291fd8eca7f4106af7582e6fc86f5a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 19 Jul 2018 08:47:31 +0900 Subject: ConnectionData: use std::move() --- lib/connectiondata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/connectiondata.cpp') diff --git a/lib/connectiondata.cpp b/lib/connectiondata.cpp index 4e9bc77e..eb516ef7 100644 --- a/lib/connectiondata.cpp +++ b/lib/connectiondata.cpp @@ -59,13 +59,13 @@ QNetworkAccessManager* ConnectionData::nam() const void ConnectionData::setBaseUrl(QUrl baseUrl) { - d->baseUrl = baseUrl; + d->baseUrl = std::move(baseUrl); qCDebug(MAIN) << "updated baseUrl to" << d->baseUrl; } void ConnectionData::setToken(QByteArray token) { - d->accessToken = token; + d->accessToken = std::move(token); } void ConnectionData::setHost(QString host) -- cgit v1.2.3