summaryrefslogtreecommitdiff
path: root/src/modules/m_customprefix.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-24 16:50:48 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-24 16:50:48 +0100
commitef0fecc856d435ff140ce87ca38618d6edceafcc (patch)
tree5871c4a21f41ceee8db03fd55b3f23564bf5cdb8 /src/modules/m_customprefix.cpp
parentfacea197311f9dfbd9401b32b18cfd1245ff9be4 (diff)
Add stdalgo::delete_all() that deletes all elements in a container
Diffstat (limited to 'src/modules/m_customprefix.cpp')
-rw-r--r--src/modules/m_customprefix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp
index 107c6d684..65c2cbd31 100644
--- a/src/modules/m_customprefix.cpp
+++ b/src/modules/m_customprefix.cpp
@@ -76,8 +76,7 @@ class ModuleCustomPrefix : public Module
~ModuleCustomPrefix()
{
- for (std::vector<CustomPrefixMode*>::iterator i = modes.begin(); i != modes.end(); i++)
- delete *i;
+ stdalgo::delete_all(modes);
}
Version GetVersion() CXX11_OVERRIDE