2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix -Wunused-variable warnings

This commit is contained in:
Ilya Fedin
2021-07-13 21:51:07 +04:00
committed by John Preston
parent b6881022ce
commit 79cc797aff
156 changed files with 65 additions and 435 deletions

View File

@@ -66,7 +66,7 @@ namespace {
constexpr auto kMinDiffIntensity = 0.25;
[[nodicard]] float64 IntensityOfColor(QColor color) {
[[nodiscard]] float64 IntensityOfColor(QColor color) {
return (0.299 * color.red()
+ 0.587 * color.green()
+ 0.114 * color.blue()) / 255.0;
@@ -397,7 +397,6 @@ void MainMenu::ToggleAccountsButton::paintEvent(QPaintEvent *e) {
const auto left = x - size;
const auto right = x + size;
const auto bottom = y + size2;
const auto top = y - size2;
constexpr auto kPointCount = 6;
std::array<QPointF, kPointCount> points = { {
{ left - stroke, bottom - stroke },