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

Fix build for Linux.

This commit is contained in:
John Preston
2020-05-29 22:06:40 +04:00
parent d5b3fa017b
commit b7aa60bedf
4 changed files with 6 additions and 8 deletions

View File

@@ -14,8 +14,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/image/image.h"
#include "main/main_session.h"
#include <compare>
namespace Data {
void CloudImageView::set(
@@ -314,4 +312,4 @@ void LoadCloudFile(
std::move(progress));
}
} // namespace Data
} // namespace Data

View File

@@ -29,8 +29,7 @@ enum class PhotoSize : uchar {
};
[[nodiscard]] inline int PhotoSizeIndex(PhotoSize size) {
Expects(static_cast<int>(size) >= 0
&& static_cast<int>(size) < kPhotoSizeCount);
Expects(static_cast<int>(size) < kPhotoSizeCount);
return static_cast<int>(size);
}