diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-05 15:55:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-05 15:55:55 +0300 |
commit | d1bb1b375d657f0821ccfebf18fa1c3873314690 (patch) | |
tree | eb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/gui/widgets | |
parent | 9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff) | |
download | plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2 plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip |
Fix useless variables initialisations.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/guitable.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index 0101ed974..4ffe8221f 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -145,7 +145,6 @@ void GuiTable::recomputeDimensions() const int rows_nr = mModel->getRows(); const int columns_nr = mModel->getColumns(); int width = 0; - int height = 0; if (mSelectedRow >= rows_nr) mSelectedRow = rows_nr - 1; @@ -156,10 +155,8 @@ void GuiTable::recomputeDimensions() for (int i = 0; i < columns_nr; i++) width += getColumnWidth(i); - height = getRowHeight() * rows_nr; - setWidth(width); - setHeight(height); + setHeight(getRowHeight() * rows_nr); } void GuiTable::setSelected(int row, int column) |