summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-16 20:39:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-16 20:39:33 +0300
commitbc92643d8db723b5049db2dbad1ce052a0ae77a9 (patch)
tree4471be99711ee310c811e990d7c210e2393aeb6e /src/gui/widgets/listbox.cpp
parent82cc576b7896f39bcf71aa85c8c4b3ef786c065b (diff)
downloadplus-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.gz
plus-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.bz2
plus-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.xz
plus-bc92643d8db723b5049db2dbad1ce052a0ae77a9.zip
Fix code style and some other minor issues.
Diffstat (limited to 'src/gui/widgets/listbox.cpp')
-rw-r--r--src/gui/widgets/listbox.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index 8e56cfe9f..7885307e6 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -47,7 +47,8 @@ ListBox::ListBox(gcn::ListModel *const listModel):
gcn::ListBox(listModel),
mHighlightColor(Theme::getThemeColor(Theme::HIGHLIGHT)),
mDistributeMousePressed(true),
- mOldSelected(-1)
+ mOldSelected(-1),
+ mPadding(0)
{
mForegroundColor = Theme::getThemeColor(Theme::LISTBOX);
@@ -60,8 +61,6 @@ ListBox::ListBox(gcn::ListModel *const listModel):
if (mSkin)
mPadding = mSkin->getPadding();
- else
- mPadding = 0;
adjustSize();
}