diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-08 21:13:38 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-08 21:22:43 +0100 |
commit | ddc93c461070fb3d868fbb5426e8361d1b93ee38 (patch) | |
tree | 250eacd391542d36a51c4d3aa398d4f6346619fb /src/gui/setup.cpp | |
parent | d129ce9776a6fd0e165b676a3addd14186c5d85d (diff) | |
download | mana-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/gui/setup.cpp')
-rw-r--r-- | src/gui/setup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index e8e0905e..2f6c6140 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -99,7 +99,7 @@ Setup::Setup(): Setup::~Setup() { - for_each(mTabs.begin(), mTabs.end(), make_dtor(mTabs)); + delete_all(mTabs); } void Setup::action(const gcn::ActionEvent &event) |