mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix build with clang
This commit is contained in:
@@ -1027,7 +1027,7 @@ void Instance::Private::unregisterRequest(mtpRequestId requestId) {
|
||||
auto handling = 0;
|
||||
do {
|
||||
handling = toResend.size();
|
||||
for (const auto [resendingId, afterId] : _dependentRequests) {
|
||||
for (const auto &[resendingId, afterId] : _dependentRequests) {
|
||||
if (toRemove.contains(afterId)) {
|
||||
toRemove.emplace(resendingId);
|
||||
toResend.emplace(resendingId);
|
||||
|
@@ -90,7 +90,6 @@ void AbstractSingleFilePreview::paintEvent(QPaintEvent *e) {
|
||||
const auto w = width()
|
||||
- st::boxPhotoPadding.left()
|
||||
- st::boxPhotoPadding.right();
|
||||
const auto h = height();
|
||||
const auto &st = !isThumbedLayout(_data)
|
||||
? st::attachPreviewLayout
|
||||
: st::attachPreviewThumbLayout;
|
||||
@@ -165,9 +164,6 @@ void AbstractSingleFilePreview::updateTextWidthFor(Data &data) {
|
||||
const auto &st = !isThumbedLayout(data)
|
||||
? st::attachPreviewLayout
|
||||
: 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)
|
||||
? 1
|
||||
: (_type == AttachControls::Type::Full)
|
||||
|
@@ -18,11 +18,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
namespace Window {
|
||||
namespace {
|
||||
|
||||
#ifdef DESKTOP_APP_SPECIAL_TARGET
|
||||
constexpr auto kMinimalSkip = 7;
|
||||
constexpr auto kSoonSkip = 30;
|
||||
constexpr auto kNowSkip = 90;
|
||||
|
||||
#ifdef DESKTOP_APP_SPECIAL_TARGET
|
||||
class Bar : public Ui::RpWidget {
|
||||
public:
|
||||
Bar(not_null<QWidget*> parent, QDate date);
|
||||
|
Submodule Telegram/lib_webrtc updated: 4a722c1f26...6541e37e2d
Reference in New Issue
Block a user