mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
117f4a0d7d
commit
907c07ce50
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ void ImageDownloader::saveImage(QNetworkReply *reply, bool &success)
|
||||||
{
|
{
|
||||||
success = false;
|
success = false;
|
||||||
QByteArray imageData = reply->readAll();
|
QByteArray imageData = reply->readAll();
|
||||||
QImage image = QImage();
|
QImage image;
|
||||||
image.loadFromData(imageData);
|
image.loadFromData(imageData);
|
||||||
if (image.isNull())
|
if (image.isNull())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue