diff options
| author | 2014-03-24 16:50:48 +0100 | |
|---|---|---|
| committer | 2014-03-24 16:50:48 +0100 | |
| commit | ef0fecc856d435ff140ce87ca38618d6edceafcc (patch) | |
| tree | 5871c4a21f41ceee8db03fd55b3f23564bf5cdb8 /src/modmanager_static.cpp | |
| parent | Cull ident sockets instead of immediate delete, add stdalgo::culldeleter (diff) | |
Add stdalgo::delete_all() that deletes all elements in a container
Diffstat (limited to 'src/modmanager_static.cpp')
| -rw-r--r-- | src/modmanager_static.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp index 76f16fa92..ac127b703 100644 --- a/src/modmanager_static.cpp +++ b/src/modmanager_static.cpp @@ -69,8 +69,7 @@ class AllModule : public Module ~AllModule() { - for(std::vector<Command*>::iterator i = cmds.begin(); i != cmds.end(); ++i) - delete *i; + stdalgo::delete_all(cmds); } Version GetVersion() |
