mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Alpha version 1.2.2: Fix build for Xcode.
This commit is contained in:
@@ -97,7 +97,7 @@ public:
|
||||
bool overrideEditedDate() const override {
|
||||
return true;
|
||||
}
|
||||
HistoryMessageEdited *displayedEditBadge() const;
|
||||
HistoryMessageEdited *displayedEditBadge() const override;
|
||||
|
||||
bool canBeGrouped() const override {
|
||||
return true;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user