summaryrefslogtreecommitdiff
path: root/src/guichan
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-01 21:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-01 22:40:36 +0300
commitfc854786ed73fe768d6a3ca22c02f7013560a930 (patch)
tree3a12f555d194679957559760567ff8eb701b494b /src/guichan
parent09d74d9273cca445b7019edacaff53452a1eee3c (diff)
downloadplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz
plus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2
plus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz
plus-fc854786ed73fe768d6a3ca22c02f7013560a930.zip
Fix code style.
Diffstat (limited to 'src/guichan')
-rw-r--r--src/guichan/focushandler.cpp14
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;
}