mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Fix -Wunused-variable warnings
This commit is contained in:
@@ -136,8 +136,6 @@ AdminLog::OwnedItem GenerateForwardedItem(
|
||||
// #TODO common global incrementable id for fake items, like clientMsgId.
|
||||
static auto id = ServerMaxMsgId + (ServerMaxMsgId / 6);
|
||||
const auto flags = Flag::f_from_id | Flag::f_fwd_from;
|
||||
const auto replyTo = 0;
|
||||
const auto viaBotId = 0;
|
||||
const auto item = MTP_message(
|
||||
MTP_flags(flags),
|
||||
MTP_int(++id),
|
||||
@@ -515,7 +513,6 @@ void LastSeenPrivacyController::confirmSave(
|
||||
bool someAreDisallowed,
|
||||
FnMut<void()> saveCallback) {
|
||||
if (someAreDisallowed && !Core::App().settings().lastSeenWarningSeen()) {
|
||||
const auto session = _session;
|
||||
auto callback = [
|
||||
=,
|
||||
saveCallback = std::move(saveCallback)
|
||||
@@ -841,7 +838,6 @@ void ForwardsPrivacyController::PaintForwardedTooltip(
|
||||
const auto textWidth = font->width(text);
|
||||
const auto arrowSkip = st::settingsForwardPrivacyArrowSkip;
|
||||
const auto arrowSize = st::settingsForwardPrivacyArrowSize;
|
||||
const auto fullWidth = std::max(textWidth, 2 * arrowSkip);
|
||||
const auto padding = st::settingsForwardPrivacyTooltipPadding;
|
||||
const auto rect = QRect(0, 0, textWidth, font->height).marginsAdded(
|
||||
padding
|
||||
|
Reference in New Issue
Block a user