Remove redundant QImage::loadFromData()
ClosedPublic

Authored by tommo on May 19 2019, 9:40 AM.

Details

Summary

The only purpose of this call is to check whether an embedded preview image of a RAW file is smaller than an (arbitrarily chosen) threshold. If this were true, it would be pointless to ask for an image that is only half as big as the one already retrieved.

Diff Detail

Repository
R260 Gwenview
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
tommo requested review of this revision.May 19 2019, 9:40 AM
tommo created this revision.

It's on my to-do list, I'll take a look tomorrow!

ngraham accepted this revision.May 24 2019, 3:46 PM
This revision is now accepted and ready to land.May 24 2019, 3:46 PM
This revision was automatically updated to reflect the committed changes.