summaryrefslogtreecommitdiff
path: root/src/gui/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/ministatuswindow.cpp
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadmanaplus-747dc30f256606e28fd932a9626da7c328114036.tar.gz
manaplus-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
manaplus-747dc30f256606e28fd932a9626da7c328114036.tar.xz
manaplus-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
Diffstat (limited to 'src/gui/ministatuswindow.cpp')
-rw-r--r--src/gui/ministatuswindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp
index f9c1a28ea..ad5890056 100644
--- a/src/gui/ministatuswindow.cpp
+++ b/src/gui/ministatuswindow.cpp
@@ -53,6 +53,9 @@ typedef std::vector <ProgressBar*>::const_iterator ProgressBarVectorCIter;
MiniStatusWindow::MiniStatusWindow() :
Popup("MiniStatus", "ministatus.xml"),
InventoryListener(),
+ mBars(),
+ mBarNames(),
+ mIcons(),
mSpacing(mSkin ? mSkin->getOption("spacing", 3) : 3),
mIconPadding(mSkin ? mSkin->getOption("iconPadding", 3) : 3),
mIconSpacing(mSkin ? mSkin->getOption("iconSpacing", 2) : 2),
@@ -64,6 +67,7 @@ MiniStatusWindow::MiniStatusWindow() :
: nullptr),
mXpBar(createBar(0, 100, 0, Theme::PROG_EXP,
"xp bar", _("experience bar"))),
+ mJobBar(nullptr),
mWeightBar(createBar(0, 140, 0, Theme::PROG_WEIGHT,
"weight bar", _("weight bar"))),
mInvSlotsBar(createBar(0, 45, 0, Theme::PROG_INVY_SLOTS,
@@ -95,10 +99,6 @@ MiniStatusWindow::MiniStatusWindow() :
_("job bar"));
StatusWindow::updateJobBar(mJobBar);
}
- else
- {
- mJobBar = nullptr;
- }
loadBars();
updateBars();