From d63438c3514003c4ea6076126097f115c6f11538 Mon Sep 17 00:00:00 2001 From: TranRed Date: Sun, 25 Aug 2019 11:56:15 +0200 Subject: [PATCH] added some improvements suggested by 23rd --- src/widgets/dialogs/UserInfoPopup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 4a8813b47..1664a817b 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -555,11 +555,11 @@ UserInfoPopup::TimeoutWidget::TimeoutWidget() addButton(Unban, "unban", getApp()->resources->buttons.unban); const auto timeoutButtons = getSettings()->timeoutButtons.getValue(); - std::vector> t(8); // Timeouts. + std::vector t(8); // Timeouts. auto i = 0; std::generate(t.begin(), t.end(), [&] { const auto tButton = timeoutButtons[i]; - std::pair pair = std::make_pair( + const auto pair = std::make_pair( QString::number(tButton.second) + tButton.first, calculateTimeoutDuration(tButton.second, tButton.first)); i++;