ソースを参照

main: Use const on all variable initializations

Zach Hilman 6 年 前
コミット
9f3bf6d157
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/yuzu/main.cpp

+ 2 - 2
src/yuzu/main.cpp

@@ -2195,7 +2195,7 @@ bool GMainWindow::ConfirmChangeGame() {
     if (emu_thread == nullptr)
     if (emu_thread == nullptr)
         return true;
         return true;
 
 
-    auto answer = QMessageBox::question(
+    const auto answer = QMessageBox::question(
         this, tr("yuzu"),
         this, tr("yuzu"),
         tr("Are you sure you want to stop the emulation? Any unsaved progress will be lost."),
         tr("Are you sure you want to stop the emulation? Any unsaved progress will be lost."),
         QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
         QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
@@ -2206,7 +2206,7 @@ bool GMainWindow::ConfirmForceLockedExit() {
     if (emu_thread == nullptr)
     if (emu_thread == nullptr)
         return true;
         return true;
 
 
-    auto answer =
+    const auto answer =
         QMessageBox::question(this, tr("yuzu"),
         QMessageBox::question(this, tr("yuzu"),
                               tr("The currently running application has requested yuzu to not "
                               tr("The currently running application has requested yuzu to not "
                                  "exit.\n\nWould you like to bypass this and exit anyway?"),
                                  "exit.\n\nWould you like to bypass this and exit anyway?"),