aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-03 21:17:09 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-03 21:17:09 +0900
commitce3c66a55fce969753c587bd664fd51bd4fa900c (patch)
treea18dd1d5ce64e9d8061ce81ad09261698e781831
parent00f2f9f376a046717bed6818410610b6cc52dd9a (diff)
downloadlibquotient-ce3c66a55fce969753c587bd664fd51bd4fa900c.tar.gz
libquotient-ce3c66a55fce969753c587bd664fd51bd4fa900c.zip
MediaThumbnailJob: minor code polishing
-rw-r--r--lib/jobs/mediathumbnailjob.cpp8
1 files changed, 4 insertions, 4 deletions
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