| 30 | using Data::kPhotoSizeCount; |
| 31 | |
| 32 | [[nodiscard]] QImage ValidatePhotoImage( |
| 33 | QImage image, |
| 34 | const Data::CloudFile &file) { |
| 35 | return (v::is<WebFileLocation>(file.location.file().data) |
| 36 | && image.format() == QImage::Format_ARGB32) |
| 37 | ? Images::Opaque(std::move(image)) |
| 38 | : image; |
| 39 | } |
| 40 | |
| 41 | } // namespace |
| 42 |
no test coverage detected