mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build with clang
This commit is contained in:
parent
46d5fc1fa0
commit
c5867e2293
4 changed files with 3 additions and 7 deletions
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4a722c1f267b2491f8e9ef6200ae4ec61b46f397
|
Subproject commit 6541e37e2de0431df22c220d80ffbb1b498f335b
|
Loading…
Add table
Reference in a new issue