summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-03 22:44:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-03 22:44:42 +0300
commitb94678289a5e671fc168ec58525b7aae2a56e6ec (patch)
tree475822a9d1acae55f2602facbbb14dba4347fb67 /src/gui/popups/popupmenu.cpp
parent602fd127d09c995bc5470218c862b2cebfc558d5 (diff)
downloadmanaverse-b94678289a5e671fc168ec58525b7aae2a56e6ec.tar.gz
manaverse-b94678289a5e671fc168ec58525b7aae2a56e6ec.tar.bz2
manaverse-b94678289a5e671fc168ec58525b7aae2a56e6ec.tar.xz
manaverse-b94678289a5e671fc168ec58525b7aae2a56e6ec.zip
Remove useless dynamic_cast.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index f01a57a4e..591ccf540 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1884,7 +1884,7 @@ void PopupMenu::showPopup(const int x, const int y, Button *const button)
for (std::vector<Button *>::const_iterator it = names.begin(),
it_end = names.end(); it != it_end; ++ it)
{
- const Button *const btn = dynamic_cast<const Button*>(*it);
+ const Button *const btn = *it;
if (!btn || btn->getActionEventId() == "SET")
continue;