From de17fe31fb0164a52bef1643affe00bbe0a760e3 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 28 Nov 2019 20:47:33 -0700 Subject: [PATCH] clang-format --- src/citra_qt/configuration/configure_hotkeys.cpp | 4 ++-- src/citra_qt/configuration/configure_web.cpp | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/citra_qt/configuration/configure_hotkeys.cpp b/src/citra_qt/configuration/configure_hotkeys.cpp index 238b2e8c64..1479283f0b 100644 --- a/src/citra_qt/configuration/configure_hotkeys.cpp +++ b/src/citra_qt/configuration/configure_hotkeys.cpp @@ -105,10 +105,10 @@ void ConfigureHotkeys::ApplyConfiguration(HotkeyRegistry& registry) { for (int key_column_id = 0; key_column_id < parent->rowCount(); key_column_id++) { QStandardItem* action = parent->child(key_column_id, 0); QStandardItem* keyseq = parent->child(key_column_id, 1); - for (auto & [group, sub_actions] : registry.hotkey_groups) { + for (auto& [group, sub_actions] : registry.hotkey_groups) { if (group != parent->text()) continue; - for (auto & [action_name, hotkey] : sub_actions) { + for (auto& [action_name, hotkey] : sub_actions) { if (action_name != action->text()) continue; hotkey.keyseq = QKeySequence(keyseq->text()); diff --git a/src/citra_qt/configuration/configure_web.cpp b/src/citra_qt/configuration/configure_web.cpp index 266e04ffe4..cc7ca675f1 100644 --- a/src/citra_qt/configuration/configure_web.cpp +++ b/src/citra_qt/configuration/configure_web.cpp @@ -127,10 +127,11 @@ void ConfigureWeb::OnLoginChanged() { void ConfigureWeb::VerifyLogin() { ui->button_verify_login->setDisabled(true); ui->button_verify_login->setText(tr("Verifying...")); - verify_watcher.setFuture(QtConcurrent::run([ - username = UsernameFromDisplayToken(ui->edit_token->text().toStdString()), - token = TokenFromDisplayToken(ui->edit_token->text().toStdString()) - ] { return Core::VerifyLogin(username, token); })); + verify_watcher.setFuture(QtConcurrent::run( + [username = UsernameFromDisplayToken(ui->edit_token->text().toStdString()), + token = TokenFromDisplayToken(ui->edit_token->text().toStdString())] { + return Core::VerifyLogin(username, token); + })); } void ConfigureWeb::OnLoginVerified() {