mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Apply autofixes from clazy
This commit is contained in:
@@ -405,7 +405,7 @@ void PasscodeBox::setPasswordFail(
|
||||
const MTP::Error &error) {
|
||||
const auto prefix = qstr("EMAIL_UNCONFIRMED_");
|
||||
if (error.type().startsWith(prefix)) {
|
||||
const auto codeLength = error.type().mid(prefix.size()).toInt();
|
||||
const auto codeLength = error.type().midRef(prefix.size()).toInt();
|
||||
|
||||
closeReplacedBy();
|
||||
_setRequest = 0;
|
||||
|
Reference in New Issue
Block a user