mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
This commit is contained in:
@@ -240,9 +240,9 @@ void CodesFeedString(SessionController *window, const QString &text) {
|
||||
}
|
||||
if (found) break;
|
||||
|
||||
found = ranges::find_if(codes, [&](const auto &pair) {
|
||||
found = ranges::any_of(codes, [&](const auto &pair) {
|
||||
return pair.first.startsWith(piece);
|
||||
}) != end(codes);
|
||||
});
|
||||
if (found) break;
|
||||
|
||||
++from;
|
||||
|
Reference in New Issue
Block a user