core/imagedownloader.cpp: Use implicit default constructor of QImage

No point in move-constructing from a different default constructed
QImage.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-02-08 23:16:20 +01:00 committed by Lubomir I. Ivanov
parent 117f4a0d7d
commit 907c07ce50

View file

@ -56,7 +56,7 @@ void ImageDownloader::saveImage(QNetworkReply *reply, bool &success)
{
success = false;
QByteArray imageData = reply->readAll();
QImage image = QImage();
QImage image;
image.loadFromData(imageData);
if (image.isNull())
return;