diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-01 21:35:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-01 22:40:36 +0300 |
commit | fc854786ed73fe768d6a3ca22c02f7013560a930 (patch) | |
tree | 3a12f555d194679957559760567ff8eb701b494b /src/guichan/focushandler.cpp | |
parent | 09d74d9273cca445b7019edacaff53452a1eee3c (diff) | |
download | mv-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz mv-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2 mv-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz mv-fc854786ed73fe768d6a3ca22c02f7013560a930.zip |
Fix code style.
Diffstat (limited to 'src/guichan/focushandler.cpp')
-rw-r--r-- | src/guichan/focushandler.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/guichan/focushandler.cpp b/src/guichan/focushandler.cpp index 393c08880..494a2a899 100644 --- a/src/guichan/focushandler.cpp +++ b/src/guichan/focushandler.cpp @@ -369,10 +369,9 @@ namespace gcn if (focusedWidget == focused) return; - if (mWidgets.at(focusedWidget)->isFocusable() && - mWidgets.at(focusedWidget)->isTabInEnabled() && - (!mModalFocusedWidget || - mWidgets.at(focusedWidget)->isModalFocused())) + const Widget *widget = mWidgets.at(focusedWidget); + if (widget->isFocusable() && widget->isTabInEnabled() && + (!mModalFocusedWidget || widget->isModalFocused())) { done = true; } @@ -438,10 +437,9 @@ namespace gcn if (focusedWidget == focused) return; - if (mWidgets.at(focusedWidget)->isFocusable() && - mWidgets.at(focusedWidget)->isTabInEnabled() && - (!mModalFocusedWidget || - mWidgets.at(focusedWidget)->isModalFocused())) + const Widget *widget = mWidgets.at(focusedWidget); + if (widget->isFocusable() && widget->isTabInEnabled() && + (!mModalFocusedWidget || widget->isModalFocused())) { done = true; } |