diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-02-08 23:16:20 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-03-05 18:04:57 +0200 |
commit | 907c07ce50a3fdaab8e1c6470271e828a55290d6 (patch) | |
tree | ed4a0cb23bf04e6f712df972f7a0850087196a61 | |
parent | 117f4a0d7d75bcbd2aa33b293f3d16f8a07ed9e1 (diff) | |
download | subsurface-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.cpp | 2 |
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; |