2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 14:17:45 +00:00

Fix build with clang

This commit is contained in:
Ilya Fedin
2021-07-20 10:57:49 +04:00
committed by John Preston
parent 46d5fc1fa0
commit c5867e2293
4 changed files with 3 additions and 7 deletions

View File

@@ -1027,7 +1027,7 @@ void Instance::Private::unregisterRequest(mtpRequestId requestId) {
auto handling = 0; auto handling = 0;
do { do {
handling = toResend.size(); handling = toResend.size();
for (const auto [resendingId, afterId] : _dependentRequests) { for (const auto &[resendingId, afterId] : _dependentRequests) {
if (toRemove.contains(afterId)) { if (toRemove.contains(afterId)) {
toRemove.emplace(resendingId); toRemove.emplace(resendingId);
toResend.emplace(resendingId); toResend.emplace(resendingId);

View File

@@ -90,7 +90,6 @@ void AbstractSingleFilePreview::paintEvent(QPaintEvent *e) {
const auto w = width() const auto w = width()
- st::boxPhotoPadding.left() - st::boxPhotoPadding.left()
- st::boxPhotoPadding.right(); - st::boxPhotoPadding.right();
const auto h = height();
const auto &st = !isThumbedLayout(_data) const auto &st = !isThumbedLayout(_data)
? st::attachPreviewLayout ? st::attachPreviewLayout
: st::attachPreviewThumbLayout; : st::attachPreviewThumbLayout;
@@ -165,9 +164,6 @@ void AbstractSingleFilePreview::updateTextWidthFor(Data &data) {
const auto &st = !isThumbedLayout(data) const auto &st = !isThumbedLayout(data)
? st::attachPreviewLayout ? st::attachPreviewLayout
: st::attachPreviewThumbLayout; : st::attachPreviewThumbLayout;
const auto nameleft = st.thumbSize + st.padding.right();
const auto nametop = st.nameTop;
const auto statustop = st.statusTop;
const auto buttonsCount = (_type == AttachControls::Type::EditOnly) const auto buttonsCount = (_type == AttachControls::Type::EditOnly)
? 1 ? 1
: (_type == AttachControls::Type::Full) : (_type == AttachControls::Type::Full)

View File

@@ -18,11 +18,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace Window { namespace Window {
namespace { namespace {
#ifdef DESKTOP_APP_SPECIAL_TARGET
constexpr auto kMinimalSkip = 7; constexpr auto kMinimalSkip = 7;
constexpr auto kSoonSkip = 30; constexpr auto kSoonSkip = 30;
constexpr auto kNowSkip = 90; constexpr auto kNowSkip = 90;
#ifdef DESKTOP_APP_SPECIAL_TARGET
class Bar : public Ui::RpWidget { class Bar : public Ui::RpWidget {
public: public:
Bar(not_null<QWidget*> parent, QDate date); Bar(not_null<QWidget*> parent, QDate date);