diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-09-04 20:09:57 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-09-04 20:09:57 +0000 |
commit | ef36048760f80708ac1eaccbc2a21e7a700dc2ab (patch) | |
tree | adf7bde9971d56e55cdf1bb88880ccecc0451e6f /src/channelmanager.cpp | |
parent | fd3706906e3408b497c61dcc54294dee8e6dbaf7 (diff) | |
download | mana-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.tar.gz mana-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.tar.bz2 mana-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.tar.xz mana-ef36048760f80708ac1eaccbc2a21e7a700dc2ab.zip |
Introduced another template to make deleting all values in a container easier.
Inspired by qDeleteAll() from Qt.
Diffstat (limited to 'src/channelmanager.cpp')
-rw-r--r-- | src/channelmanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/channelmanager.cpp b/src/channelmanager.cpp index 91c20e98..3c66f4bb 100644 --- a/src/channelmanager.cpp +++ b/src/channelmanager.cpp @@ -21,7 +21,6 @@ * $Id$ */ -#include <algorithm> #include <list> #include "channelmanager.h" @@ -36,7 +35,7 @@ ChannelManager::ChannelManager() ChannelManager::~ChannelManager() { - for_each(mChannels.begin(), mChannels.end(), make_dtor(mChannels)); + delete_all(mChannels); mChannels.clear(); } |