From f13c12464e91e6e2aca261cea309382b0ab8b3fc Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 3 Feb 2025 18:35:37 +0100 Subject: [PATCH] Fixed some Clang compiler warnings --- es-app/src/guis/GuiMenu.cpp | 4 ++-- es-app/src/views/ViewController.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 236d05f8d..76fddd48d 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -2247,7 +2247,7 @@ void GuiMenu::openQuitMenu() s->addRow(row); row.elements.clear(); - row.makeAcceptInputHandler([window, this] { + row.makeAcceptInputHandler([window] { window->pushGui(new GuiMsgBox( _("REALLY REBOOT?"), _("YES"), [] { @@ -2264,7 +2264,7 @@ void GuiMenu::openQuitMenu() s->addRow(row); row.elements.clear(); - row.makeAcceptInputHandler([window, this] { + row.makeAcceptInputHandler([window] { window->pushGui(new GuiMsgBox( _("REALLY POWER OFF?"), _("YES"), [] { diff --git a/es-app/src/views/ViewController.h b/es-app/src/views/ViewController.h index 2d216201e..a5c079ff9 100644 --- a/es-app/src/views/ViewController.h +++ b/es-app/src/views/ViewController.h @@ -132,7 +132,7 @@ public: std::vector getHelpPrompts() override; - void setHelpComponentsVisibility(const bool state) + void setHelpComponentsVisibility(const bool state) override { if (mCurrentView != nullptr) mCurrentView->setHelpComponentsVisibility(state);