Alpha version 1.2.2: Fix build for Xcode.

This commit is contained in:
John Preston 2017-12-16 21:05:58 +04:00
parent b0f191515a
commit de16a66a4a
3 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@ public:
bool overrideEditedDate() const override {
return true;
}
HistoryMessageEdited *displayedEditBadge() const;
HistoryMessageEdited *displayedEditBadge() const override;
bool canBeGrouped() const override {
return true;

View File

@ -749,8 +749,8 @@ void HistoryPhoto::validateGroupedCache(
const auto pixSize = CountPixSizeForSize(
{ originalWidth, originalHeight },
{ width, height });
const auto pixWidth = pixSize.width();
const auto pixHeight = pixSize.height();
const auto pixWidth = pixSize.width() * cIntRetinaFactor();
const auto pixHeight = pixSize.height() * cIntRetinaFactor();
const auto &image = loaded ? _data->full : _data->thumb;
*cacheKey = key;

View File

@ -36,7 +36,7 @@ inline bool IsGroupItemSelection(
return IsSubGroupSelection(selection) && (selection.to & (1 << index));
}
inline [[nodiscard]] TextSelection AddGroupItemSelection(
[[nodiscard]] inline TextSelection AddGroupItemSelection(
TextSelection selection,
int index) {
Expects(index >= 0 && index < 0x0F);
@ -47,7 +47,7 @@ inline [[nodiscard]] TextSelection AddGroupItemSelection(
IsSubGroupSelection(selection) ? (selection.to | bit) : bit);
}
inline[[nodiscard]] TextSelection RemoveGroupItemSelection(
[[nodiscard]] inline TextSelection RemoveGroupItemSelection(
TextSelection selection,
int index) {
Expects(index >= 0 && index < 0x0F);