2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Added references to structured bindings since Apple clang supports them.

This commit is contained in:
23rd
2024-01-09 20:32:18 +03:00
committed by John Preston
parent 6516c7aef3
commit a1369aaad0
33 changed files with 58 additions and 58 deletions

View File

@@ -1243,7 +1243,7 @@ void SessionController::setupShortcuts() {
auto &&accounts = ranges::views::zip(
Shortcuts::kShowAccount,
ranges::views::ints(0, accountsCount));
for (const auto [command, index] : accounts) {
for (const auto &[command, index] : accounts) {
request->check(command) && request->handle([=] {
const auto list = app->domain().orderedAccounts();
if (index >= list.size()) {