Apply autofixes from clazy

This commit is contained in:
Ilya Fedin
2021-03-13 12:26:58 +04:00
committed by John Preston
parent c9934c142d
commit f25b2a2094
35 changed files with 49 additions and 49 deletions
+1 -1
View File
@@ -496,7 +496,7 @@ void Widget::resetAccount() {
const auto &type = error.type();
if (type.startsWith(qstr("2FA_CONFIRM_WAIT_"))) {
const auto seconds = type.mid(qstr("2FA_CONFIRM_WAIT_").size()).toInt();
const auto seconds = type.midRef(qstr("2FA_CONFIRM_WAIT_").size()).toInt();
const auto days = (seconds + 59) / 86400;
const auto hours = ((seconds + 59) % 86400) / 3600;
const auto minutes = ((seconds + 59) % 3600) / 60;