diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:35 +0300 |
commit | 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (patch) | |
tree | 2053748aba4fd1e01020effe9322757426354d28 /src/gui/windowmenu.cpp | |
parent | 2577a25f8a4acf587526809fda2ded95875e1222 (diff) | |
download | mv-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.gz mv-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.bz2 mv-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.tar.xz mv-3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9.zip |
Add missing const in gui directory.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index ec51062eb..7360b4a5e 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -208,7 +208,7 @@ WindowMenu::~WindowMenu() for (std::map <std::string, ButtonInfo*>::iterator it = mButtonNames.begin(), - it_end = mButtonNames.end(); it != it_end; ++it) + it_fend = mButtonNames.end(); it != it_fend; ++it) { delete (*it).second; } @@ -382,7 +382,7 @@ void WindowMenu::loadButtons() { for (std::map <std::string, ButtonInfo*>::iterator it = mButtonNames.begin(), - it_end = mButtonNames.end(); it != it_end; ++it) + it_fend = mButtonNames.end(); it != it_fend; ++it) { const ButtonInfo *const info = (*it).second; if (!info || !info->button || info->visible == Visible_true) @@ -409,7 +409,7 @@ void WindowMenu::loadButtons() { for (std::map <std::string, ButtonInfo*>::iterator it = mButtonNames.begin(), - it_end = mButtonNames.end(); it != it_end; ++it) + it_fend = mButtonNames.end(); it != it_fend; ++it) { const ButtonInfo *const info = (*it).second; if (!info || !info->button) @@ -440,7 +440,7 @@ void WindowMenu::saveButtons() const config.deleteKey("windowmenu" + toString(f)); } -void WindowMenu::drawChildren(Graphics* graphics) +void WindowMenu::drawChildren(Graphics *const graphics) { if (mHaveMouse || !mAutoHide || (mAutoHide == 1 && mainGraphics && (mSmallWindow || mainGraphics->mWidth > 800))) @@ -449,7 +449,7 @@ void WindowMenu::drawChildren(Graphics* graphics) } } -void WindowMenu::safeDrawChildren(Graphics* graphics) +void WindowMenu::safeDrawChildren(Graphics *const graphics) { if (mHaveMouse || !mAutoHide || (mAutoHide == 1 && mainGraphics && (mSmallWindow || mainGraphics->mWidth > 800))) |