summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-13 01:11:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-13 01:11:50 +0300
commit308e352fbf2fd4f96d797e596fc41083e53e6106 (patch)
treee874de1b2ebcaec013f6b1c3363faacc698a438d /src/gui/windowmenu.cpp
parentc67648bcc2ebd94da7ad90dc1f886b9f8206de8e (diff)
downloadplus-308e352fbf2fd4f96d797e596fc41083e53e6106.tar.gz
plus-308e352fbf2fd4f96d797e596fc41083e53e6106.tar.bz2
plus-308e352fbf2fd4f96d797e596fc41083e53e6106.tar.xz
plus-308e352fbf2fd4f96d797e596fc41083e53e6106.zip
Fix code style.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 6139d410a..c9fb9c40c 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -199,12 +199,12 @@ void WindowMenu::action(const gcn::ActionEvent &event)
{
const std::string &eventId = event.getId();
- std::map <std::string, ButtonInfo*>::iterator
+ const std::map <std::string, ButtonInfo*>::iterator
it = mButtonNames.find(eventId);
if (it == mButtonNames.end())
return;
- ButtonInfo *const info = (*it).second;
+ const ButtonInfo *const info = (*it).second;
if (!info)
return;
@@ -296,7 +296,7 @@ void WindowMenu::mouseExited(gcn::MouseEvent& mouseEvent A_UNUSED)
void WindowMenu::showButton(const std::string &name, const bool visible)
{
- ButtonInfo *const info = dynamic_cast<ButtonInfo *const>(
+ const ButtonInfo *const info = dynamic_cast<ButtonInfo *const>(
mButtonNames[name]);
if (!info || !info->button)
return;
@@ -340,7 +340,7 @@ void WindowMenu::loadButtons()
it = mButtonNames.begin(),
it_end = mButtonNames.end(); it != it_end; ++it)
{
- ButtonInfo *info = (*it).second;
+ const ButtonInfo *const info = (*it).second;
if (!info || !info->button || info->visible)
continue;
info->button->setVisible(false);
@@ -354,7 +354,7 @@ void WindowMenu::loadButtons()
std::string str = config.getValue("windowmenu" + toString(f), "");
if (str == "" || str == "SET")
continue;
- ButtonInfo *const info = dynamic_cast<ButtonInfo *const>(
+ const ButtonInfo *const info = dynamic_cast<ButtonInfo *const>(
mButtonNames[str]);
if (!info || !info->button)
continue;
@@ -367,7 +367,7 @@ void WindowMenu::loadButtons()
it = mButtonNames.begin(),
it_end = mButtonNames.end(); it != it_end; ++it)
{
- ButtonInfo *info = (*it).second;
+ const ButtonInfo *const info = (*it).second;
if (!info || !info->button)
continue;
Button *const button = info->button;