summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/client.cpp4
-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
-rw-r--r--src/particle/particle.cpp5
-rw-r--r--src/utils/copynpaste.cpp2
-rw-r--r--src/utils/dtor.h2
11 files changed, 15 insertions, 14 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 8106c01e5..750c17bd2 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -222,7 +222,7 @@ namespace
A_DELETE_COPY(AccountListener)
- void action(const ActionEvent &) override final
+ void action(const ActionEvent &event A_UNUSED) override final
{
client->setState(State::CHAR_SELECT);
}
@@ -236,7 +236,7 @@ namespace
A_DELETE_COPY(LoginListener)
- void action(const ActionEvent &) override final
+ void action(const ActionEvent &event A_UNUSED) override final
{
client->setState(State::PRE_LOGIN);
}
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)
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp
index 419105cbd..89ac1aa7d 100644
--- a/src/particle/particle.cpp
+++ b/src/particle/particle.cpp
@@ -118,8 +118,9 @@ Particle::~Particle()
ParticleEngine::particleCount--;
}
-void Particle::draw(Graphics *restrict const,
- const int, const int) const restrict2
+void Particle::draw(Graphics *restrict const graphics A_UNUSED,
+ const int offsetX A_UNUSED,
+ const int offsetY A_UNUSED) const restrict2
{
}
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index 10b43e811..8e3537734 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -499,7 +499,7 @@ bool sendBuffer(const std::string &restrict text)
}
#else // WIN32
-bool retrieveBuffer(std::string&, size_t&)
+bool retrieveBuffer(std::string &text A_UNUSED, size_t &pos A_UNUSED)
{
return false;
}
diff --git a/src/utils/dtor.h b/src/utils/dtor.h
index 7856fc248..7f32dc2eb 100644
--- a/src/utils/dtor.h
+++ b/src/utils/dtor.h
@@ -46,7 +46,7 @@ public std::unary_function <std::pair<T1, T2>, void>
};
template<class Cont>
-inline dtor<typename Cont::value_type> make_dtor(Cont const&)
+inline dtor<typename Cont::value_type> make_dtor(Cont const &d)
{
return dtor<typename Cont::value_type>();
}