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

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

View File

@@ -576,11 +576,11 @@ QString InterpretSendPath(
auto caption = QString();
for (const auto &line : lines) {
if (line.startsWith(qstr("from: "))) {
if (window->session().userId() != line.mid(qstr("from: ").size()).toInt()) {
if (window->session().userId() != line.midRef(qstr("from: ").size()).toInt()) {
return "App Error: Wrong current user.";
}
} else if (line.startsWith(qstr("channel: "))) {
const auto channelId = line.mid(qstr("channel: ").size()).toInt();
const auto channelId = line.midRef(qstr("channel: ").size()).toInt();
toId = peerFromChannel(channelId);
} else if (line.startsWith(qstr("file: "))) {
const auto path = line.mid(qstr("file: ").size());