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:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user