From 308e352fbf2fd4f96d797e596fc41083e53e6106 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Feb 2013 01:11:50 +0300 Subject: Fix code style. --- src/gui/windowmenu.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/windowmenu.cpp') 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 ::iterator + const std::map ::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( + const ButtonInfo *const info = dynamic_cast( 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( + const ButtonInfo *const info = dynamic_cast( 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; -- cgit v1.2.3-70-g09d2