summaryrefslogtreecommitdiff
path: root/src/gui/widgets/guitable.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-07 21:01:35 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-07 21:38:22 +0300
commita9732d3ad6115ad7d590e819631dfbd764d13d3e (patch)
treec62984bf527305f275a521e227d785df769c1351 /src/gui/widgets/guitable.cpp
parentb43854b65e0c8bdbc37db2a0b6e2e86ebf11e7f7 (diff)
downloadmanaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.gz
manaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.bz2
manaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.xz
manaplus-a9732d3ad6115ad7d590e819631dfbd764d13d3e.zip
remove useless checks.
Diffstat (limited to 'src/gui/widgets/guitable.cpp')
-rw-r--r--src/gui/widgets/guitable.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp
index 16604d760..ec23fda38 100644
--- a/src/gui/widgets/guitable.cpp
+++ b/src/gui/widgets/guitable.cpp
@@ -588,16 +588,13 @@ void GuiTable::_setFocusHandler(gcn::FocusHandler* focusHandler)
gcn::Widget::_setFocusHandler(focusHandler);
- if (mModel)
+ for (int r = 0; r < mModel->getRows(); ++r)
{
- for (int r = 0; r < mModel->getRows(); ++r)
+ for (int c = 0; c < mModel->getColumns(); ++c)
{
- for (int c = 0; c < mModel->getColumns(); ++c)
- {
- gcn::Widget *const w = mModel->getElementAt(r, c);
- if (w)
- w->_setFocusHandler(focusHandler);
- }
+ gcn::Widget *const w = mModel->getElementAt(r, c);
+ if (w)
+ w->_setFocusHandler(focusHandler);
}
}
}