From 763e91044a4e9c8905ee082457cb42da36a38cc0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Jun 2017 17:54:12 +0300 Subject: Add missing function parameters. --- src/gui/theme.cpp | 2 +- src/gui/theme.h | 2 +- src/gui/widgets/tabs/chat/chattab.h | 4 ++-- src/gui/widgets/tabs/chat/partytab.h | 2 +- src/gui/windows/connectiondialog.cpp | 2 +- src/gui/windows/connectiondialog.h | 2 +- src/gui/windows/serverdialog.cpp | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 6d16dfd4e..b36791b13 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -289,7 +289,7 @@ void Theme::updateAlpha() } } -void Theme::optionChanged(const std::string &) +void Theme::optionChanged(const std::string &name A_UNUSED) { updateAlpha(); } diff --git a/src/gui/theme.h b/src/gui/theme.h index bdc23eba7..9ef477452 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -158,7 +158,7 @@ class Theme final : public Palette, */ void setMinimumOpacity(const float minimumOpacity); - void optionChanged(const std::string &) override final; + void optionChanged(const std::string &name) override final; void loadRect(ImageRect &image, const std::string &name, diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index e3bdf1c1e..440501af4 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -191,10 +191,10 @@ class ChatTab notfinal : public Tab virtual void handleHelp(const std::string &msg); - virtual void getAutoCompleteList(StringVect&) const + virtual void getAutoCompleteList(StringVect &names A_UNUSED) const {} - virtual void getAutoCompleteCommands(StringVect&) const + virtual void getAutoCompleteCommands(StringVect &names A_UNUSED) const {} void addRow(std::string &line); diff --git a/src/gui/widgets/tabs/chat/partytab.h b/src/gui/widgets/tabs/chat/partytab.h index 733f256c9..a987c9362 100644 --- a/src/gui/widgets/tabs/chat/partytab.h +++ b/src/gui/widgets/tabs/chat/partytab.h @@ -48,7 +48,7 @@ class PartyTab notfinal : public ChatTab, protected: void handleInput(const std::string &msg) override final; - void getAutoCompleteList(StringVect&) const override final; + void getAutoCompleteList(StringVect &names) const override final; void getAutoCompleteCommands(StringVect &names) const override final; }; diff --git a/src/gui/windows/connectiondialog.cpp b/src/gui/windows/connectiondialog.cpp index 1afa4774d..1be79f6db 100644 --- a/src/gui/windows/connectiondialog.cpp +++ b/src/gui/windows/connectiondialog.cpp @@ -67,7 +67,7 @@ void ConnectionDialog::postInit() setVisible(Visible_true); } -void ConnectionDialog::action(const ActionEvent &) +void ConnectionDialog::action(const ActionEvent &action A_UNUSED) { logger->log1("Cancel pressed"); client->setState(mCancelState); diff --git a/src/gui/windows/connectiondialog.h b/src/gui/windows/connectiondialog.h index 108ee0729..312ec5c8a 100644 --- a/src/gui/windows/connectiondialog.h +++ b/src/gui/windows/connectiondialog.h @@ -56,7 +56,7 @@ class ConnectionDialog final : public Window, * Called when the user presses Cancel. Restores the global state to * the previous one. */ - void action(const ActionEvent &) override final; + void action(const ActionEvent &action) override final; void draw(Graphics *const graphics) override final A_NONNULL(2); diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index 51f937666..c447bfc12 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -359,7 +359,7 @@ void ServerDialog::keyPressed(KeyEvent &event) mServersList->keyPressed(event); } -void ServerDialog::valueChanged(const SelectionEvent &) +void ServerDialog::valueChanged(const SelectionEvent &event A_UNUSED) { const int index = mServersList->getSelected(); if (index == -1) -- cgit v1.2.3-60-g2f50