From ce3c66a55fce969753c587bd664fd51bd4fa900c Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 3 Nov 2018 21:17:09 +0900 Subject: MediaThumbnailJob: minor code polishing --- lib/jobs/mediathumbnailjob.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/jobs') diff --git a/lib/jobs/mediathumbnailjob.cpp b/lib/jobs/mediathumbnailjob.cpp index 8dfb6094..aeb49839 100644 --- a/lib/jobs/mediathumbnailjob.cpp +++ b/lib/jobs/mediathumbnailjob.cpp @@ -23,7 +23,8 @@ using namespace QMatrixClient; QUrl MediaThumbnailJob::makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri, QSize requestedSize) { - return makeRequestUrl(baseUrl, mxcUri.authority(), mxcUri.path().mid(1), + return makeRequestUrl(std::move(baseUrl), + mxcUri.authority(), mxcUri.path().mid(1), requestedSize.width(), requestedSize.height()); } @@ -34,9 +35,8 @@ MediaThumbnailJob::MediaThumbnailJob(const QString& serverName, { } MediaThumbnailJob::MediaThumbnailJob(const QUrl& mxcUri, QSize requestedSize) - : GetContentThumbnailJob(mxcUri.authority(), - mxcUri.path().mid(1), // sans leading '/' - requestedSize.width(), requestedSize.height()) + : MediaThumbnailJob(mxcUri.authority(), mxcUri.path().mid(1), // sans leading '/' + requestedSize) { } QImage MediaThumbnailJob::thumbnail() const -- cgit v1.2.3