From 46e8c383955323b98b905fe1abffb8397acea150 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sun, 31 May 2020 10:47:46 +0800 Subject: [PATCH] Use attribute instead of comment --- src/citra_qt/applets/swkbd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/applets/swkbd.cpp b/src/citra_qt/applets/swkbd.cpp index 63e5fb2b9d..6cfd2e5b77 100644 --- a/src/citra_qt/applets/swkbd.cpp +++ b/src/citra_qt/applets/swkbd.cpp @@ -38,13 +38,13 @@ QtKeyboardDialog::QtKeyboardDialog(QWidget* parent, QtKeyboard* keyboard_) ? tr(SWKBD_BUTTON_FORGOT) : QString::fromStdString(config.button_text[1]), QDialogButtonBox::ButtonRole::HelpRole); - // fallthrough + [[fallthrough]]; case ButtonConfig::Dual: buttons->addButton(config.button_text[0].empty() ? tr(SWKBD_BUTTON_CANCEL) : QString::fromStdString(config.button_text[0]), QDialogButtonBox::ButtonRole::RejectRole); - // fallthrough + [[fallthrough]]; case ButtonConfig::Single: buttons->addButton(config.button_text[2].empty() ? tr(SWKBD_BUTTON_OKAY)