summaryrefslogtreecommitdiff
path: root/src/channelmanager.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/channelmanager.cpp
parentfd3706906e3408b497c61dcc54294dee8e6dbaf7 (diff)
downloadmana-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.cpp3
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();
}