mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
explicitly specify the upper bound in ranges::view::ints
This commit is contained in:
committed by
John Preston
parent
8abeb4a9db
commit
56aab1aa07
@@ -2962,7 +2962,7 @@ void InnerWidget::setupShortcuts() {
|
||||
Command::ChatPinned4,
|
||||
Command::ChatPinned5,
|
||||
};
|
||||
auto &&pinned = ranges::view::zip(kPinned, ranges::view::ints(0));
|
||||
auto &&pinned = ranges::view::zip(kPinned, ranges::view::ints(0, ranges::unreachable));
|
||||
for (const auto [command, index] : pinned) {
|
||||
request->check(command) && request->handle([=, index = index] {
|
||||
const auto list = session().data().chatsList()->indexed();
|
||||
|
Reference in New Issue
Block a user