From fc854786ed73fe768d6a3ca22c02f7013560a930 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Aug 2012 21:35:49 +0300 Subject: Fix code style. --- src/guichan/focushandler.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/guichan') 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; } -- cgit v1.2.3-70-g09d2