summaryrefslogtreecommitdiff
path: root/src/resources/monsterinfo.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-09-04 20:09:57 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-09-04 20:09:57 +0000
commitef36048760f80708ac1eaccbc2a21e7a700dc2ab (patch)
treeadf7bde9971d56e55cdf1bb88880ccecc0451e6f /src/resources/monsterinfo.cpp
parentfd3706906e3408b497c61dcc54294dee8e6dbaf7 (diff)
downloadmana-client-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.tar.gz
mana-client-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.tar.bz2
mana-client-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.tar.xz
mana-client-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.zip
Introduced another template to make deleting all values in a container easier.
Inspired by qDeleteAll() from Qt.
Diffstat (limited to 'src/resources/monsterinfo.cpp')
-rw-r--r--src/resources/monsterinfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resources/monsterinfo.cpp b/src/resources/monsterinfo.cpp
index 0af09c53..263810de 100644
--- a/src/resources/monsterinfo.cpp
+++ b/src/resources/monsterinfo.cpp
@@ -21,8 +21,6 @@
* $Id$
*/
-#include <algorithm>
-
#include "monsterinfo.h"
#include "../utils/dtor.h"
@@ -35,7 +33,7 @@ MonsterInfo::MonsterInfo():
MonsterInfo::~MonsterInfo()
{
// kill vectors in mSoundEffects
- for_each(mSounds.begin(), mSounds.end(), make_dtor(mSounds));
+ delete_all(mSounds);
mSounds.clear();
}