2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix implicit conversions from QByteArray

This commit is contained in:
Ilya Fedin
2021-02-19 14:09:01 +04:00
committed by John Preston
parent 22cbf32a14
commit bbf49b024a
11 changed files with 60 additions and 56 deletions

View File

@@ -107,7 +107,7 @@ PreparedFileThumbnail FinalizeFileThumbnail(
bool isSticker) {
prepared.name = isSticker ? qsl("thumb.webp") : qsl("thumb.jpg");
if (FileThumbnailUploadRequired(filemime, filesize)) {
const auto format = QByteArray(isSticker ? "WEBP" : "JPG");
const auto format = isSticker ? "WEBP" : "JPG";
auto buffer = QBuffer(&prepared.bytes);
prepared.image.save(&buffer, format, kThumbnailQuality);
}