diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-10-19 06:55:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-10-19 06:55:28 +0300 |
commit | 98c74738f21d7ae256f1273b6c1614ee64e2a3ad (patch) | |
tree | 95a1af0071c774021c781611d215fee84358a807 /src/gui/widgets/tabbedarea.cpp | |
parent | a0b050fd82177f38b8bbf3360159d57886e2a347 (diff) | |
download | manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.gz manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.bz2 manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.tar.xz manaverse-98c74738f21d7ae256f1273b6c1614ee64e2a3ad.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 6e9fa5e19..37fb7637e 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -555,13 +555,14 @@ void TabbedArea::updateTabsWidth() void TabbedArea::updateVisibleTabsWidth() { - mVisibleTabsWidth = 0; + unsigned int visibleTabsWidth = 0; for (size_t i = mTabScrollIndex, sz = mTabs.size(); i < sz; ++i) { Tab *const tab = mTabs[i].first; - if ((tab != nullptr) && tab->mVisible == Visible_true) - mVisibleTabsWidth += CAST_S32(tab->getWidth()); + if (tab != nullptr && tab->mVisible == Visible_true) + visibleTabsWidth += CAST_S32(tab->getWidth()); } + mVisibleTabsWidth = visibleTabsWidth; } void TabbedArea::adjustSize() @@ -616,8 +617,9 @@ void TabbedArea::adjustTabPositions() } } - int x = (mEnableScrollButtons && mArrowButton[0]->mVisible == Visible_true) - ? mArrowButton[0]->getWidth() : 0; + unsigned int x = (mEnableScrollButtons && + mArrowButton[0]->mVisible == Visible_true) ? + mArrowButton[0]->getWidth() : 0U; for (size_t i = mTabScrollIndex; i < sz; ++i) { Tab *const tab = mTabs[i].first; |