aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-02-08 23:16:20 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-03-05 18:04:57 +0200
commit907c07ce50a3fdaab8e1c6470271e828a55290d6 (patch)
treeed4a0cb23bf04e6f712df972f7a0850087196a61
parent117f4a0d7d75bcbd2aa33b293f3d16f8a07ed9e1 (diff)
downloadsubsurface-907c07ce50a3fdaab8e1c6470271e828a55290d6.tar.gz
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>
-rw-r--r--core/imagedownloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp
index c3024764c..9a8463b7e 100644
--- a/core/imagedownloader.cpp
+++ b/core/imagedownloader.cpp
@@ -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;