summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 21:40:25 +0000
commitaa6a0b7b75bc05e51805b6f377ca6278f1f58436 (patch)
tree718c211089348a3b67641d16821a98ae88de0285 /src/gui/status.cpp
parentd0333c99e0ff4c5510875bf8993056875d6c93af (diff)
downloadmana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.gz
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.bz2
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.xz
mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.zip
Added automatic widget cleanup to the window class.
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index 10b6431d..43456a29 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -215,54 +215,6 @@ StatusWindow::StatusWindow():
add(remainingStatsPointsLabel);
}
-StatusWindow::~StatusWindow()
-{
- // Status Part
- delete lvlLabel;
- delete gpLabel;
- delete hpLabel;
- delete hpValueLabel;
- delete mpLabel;
- delete mpValueLabel;
- delete xpLabel;
- delete xpValueLabel;
- delete jobXpLabel;
- delete jobValueLabel;
- delete hpBar;
- delete mpBar;
- delete xpBar;
- delete jobXpBar;
-
- // Stats Part
- delete statsTitleLabel;
- delete statsTotalLabel;
- delete statsCostLabel;
- for (int i = 0; i < 6; i++)
- {
- delete statsLabel[i];
- delete pointsLabel[i];
- delete statsDisplayLabel[i];
- delete statsButton[i];
- }
- delete statsAttackLabel;
- delete statsDefenseLabel;
- delete statsMagicAttackLabel;
- delete statsMagicDefenseLabel;
- delete statsAccuracyLabel;
- delete statsEvadeLabel;
- delete statsReflexLabel;
-
- delete statsAttackPoints;
- delete statsDefensePoints;
- delete statsMagicAttackPoints;
- delete statsMagicDefensePoints;
- delete statsAccuracyPoints;
- delete statsEvadePoints;
- delete statsReflexPoints;
-
- delete remainingStatsPointsLabel;
-}
-
void StatusWindow::update()
{
std::stringstream updateText;