summaryrefslogtreecommitdiff
path: root/src/flooritemmanager.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-08 21:13:38 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-08 21:22:43 +0100
commitddc93c461070fb3d868fbb5426e8361d1b93ee38 (patch)
tree250eacd391542d36a51c4d3aa398d4f6346619fb /src/flooritemmanager.cpp
parentd129ce9776a6fd0e165b676a3addd14186c5d85d (diff)
downloadmana-client-ddc93c461070fb3d868fbb5426e8361d1b93ee38.tar.gz
mana-client-ddc93c461070fb3d868fbb5426e8361d1b93ee38.tar.bz2
mana-client-ddc93c461070fb3d868fbb5426e8361d1b93ee38.tar.xz
mana-client-ddc93c461070fb3d868fbb5426e8361d1b93ee38.zip
Introduced another template to make deleting all values in a container easier.
Inspired by qDeleteAll() from Qt. Conflicts: ChangeLog src/beingmanager.cpp src/channelmanager.cpp src/gui/skill.cpp src/map.cpp src/resources/monsterinfo.cpp (cherry picked from mainline)
Diffstat (limited to 'src/flooritemmanager.cpp')
-rw-r--r--src/flooritemmanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/flooritemmanager.cpp b/src/flooritemmanager.cpp
index 006d62c1..68c84b5b 100644
--- a/src/flooritemmanager.cpp
+++ b/src/flooritemmanager.cpp
@@ -19,8 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <algorithm>
-
#include "flooritemmanager.h"
#include "floor_item.h"
@@ -48,7 +46,7 @@ void FloorItemManager::destroy(FloorItem *item)
void FloorItemManager::clear()
{
- for_each(mFloorItems.begin(), mFloorItems.end(), make_dtor(mFloorItems));
+ delete_all(mFloorItems);
mFloorItems.clear();
}