summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 17:54:12 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 23:41:37 +0300
commit763e91044a4e9c8905ee082457cb42da36a38cc0 (patch)
treea73f68e02e083fc9b236ea7a18ef406dd5ea0a46 /src/gui
parentdd3b6609584e59e8c3b67624c9800c5d0e2a2208 (diff)
downloadmv-763e91044a4e9c8905ee082457cb42da36a38cc0.tar.gz
mv-763e91044a4e9c8905ee082457cb42da36a38cc0.tar.bz2
mv-763e91044a4e9c8905ee082457cb42da36a38cc0.tar.xz
mv-763e91044a4e9c8905ee082457cb42da36a38cc0.zip
Add missing function parameters.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/theme.cpp2
-rw-r--r--src/gui/theme.h2
-rw-r--r--src/gui/widgets/tabs/chat/chattab.h4
-rw-r--r--src/gui/widgets/tabs/chat/partytab.h2
-rw-r--r--src/gui/windows/connectiondialog.cpp2
-rw-r--r--src/gui/windows/connectiondialog.h2
-rw-r--r--src/gui/windows/serverdialog.cpp2
7 files changed, 8 insertions, 8 deletions
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)