summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 19:58:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit9c847001516949e21a522ae53a0e07c556b4116d (patch)
tree210687136415050474a315945b877205b07944c3 /src/gui
parent5c6dc4e9dc4e13e3531135ad434b540055c2393e (diff)
downloadplus-9c847001516949e21a522ae53a0e07c556b4116d.tar.gz
plus-9c847001516949e21a522ae53a0e07c556b4116d.tar.bz2
plus-9c847001516949e21a522ae53a0e07c556b4116d.tar.xz
plus-9c847001516949e21a522ae53a0e07c556b4116d.zip
add missing const in popupmenu casts.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index cba03800a..f151eae01 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -319,7 +319,7 @@ void PopupMenu::showPopup(const int x, const int y,
mBrowserBox->addRow(_("Players"));
FOR_EACH (std::vector<ActorSprite*>::const_iterator, it, beings)
{
- const Being *const being = dynamic_cast<Being*>(*it);
+ const Being *const being = dynamic_cast<const Being*>(*it);
const ActorSprite *const actor = *it;
if (being && !being->getName().empty())
{
@@ -2098,7 +2098,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<Button*>(*it);
+ const Button *const btn = dynamic_cast<const Button*>(*it);
if (!btn || btn->getActionEventId() == "SET")
continue;