Fixed some unused-but-set-variable warnings.

This commit is contained in:
23rd
2025-04-12 20:44:45 +03:00
committed by John Preston
parent 667e614bf3
commit 9ad1d1c25d
55 changed files with 98 additions and 99 deletions
@@ -1017,7 +1017,7 @@ const style::RoundCheckbox &Voice::checkboxStyle() const {
}
void Voice::updateName() {
if (const auto forwarded = parent()->Get<HistoryMessageForwarded>()) {
if (parent()->Has<HistoryMessageForwarded>()) {
const auto info = parent()->originalHiddenSenderInfo();
const auto name = info
? tr::lng_forwarded(tr::now, lt_user, info->nameText().toString())