Fixed some Clang compiler warnings

This commit is contained in:
Leon Styhre 2025-02-03 18:35:37 +01:00
parent 1bfe7efe3c
commit f13c12464e
2 changed files with 3 additions and 3 deletions

View file

@ -2247,7 +2247,7 @@ void GuiMenu::openQuitMenu()
s->addRow(row); s->addRow(row);
row.elements.clear(); row.elements.clear();
row.makeAcceptInputHandler([window, this] { row.makeAcceptInputHandler([window] {
window->pushGui(new GuiMsgBox( window->pushGui(new GuiMsgBox(
_("REALLY REBOOT?"), _("YES"), _("REALLY REBOOT?"), _("YES"),
[] { [] {
@ -2264,7 +2264,7 @@ void GuiMenu::openQuitMenu()
s->addRow(row); s->addRow(row);
row.elements.clear(); row.elements.clear();
row.makeAcceptInputHandler([window, this] { row.makeAcceptInputHandler([window] {
window->pushGui(new GuiMsgBox( window->pushGui(new GuiMsgBox(
_("REALLY POWER OFF?"), _("YES"), _("REALLY POWER OFF?"), _("YES"),
[] { [] {

View file

@ -132,7 +132,7 @@ public:
std::vector<HelpPrompt> getHelpPrompts() override; std::vector<HelpPrompt> getHelpPrompts() override;
void setHelpComponentsVisibility(const bool state) void setHelpComponentsVisibility(const bool state) override
{ {
if (mCurrentView != nullptr) if (mCurrentView != nullptr)
mCurrentView->setHelpComponentsVisibility(state); mCurrentView->setHelpComponentsVisibility(state);