]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_showfile.cpp
m_spanningtree Add ServerCommand::ExtractTS() to convert string to raw TS
[user/henk/code/inspircd.git] / src / modules / m_showfile.cpp
index 0f5d3ed1a00c8e556239edb9ed3d12934da6abad..c42877eef2fab9943a14d30d0b9dd1312fc1f9cd 100644 (file)
@@ -127,12 +127,6 @@ class ModuleShowFile : public Module
                newcmds.push_back(sfcmd);
        }
 
-       static void DelAll(const std::vector<CommandShowFile*>& list)
-       {
-               for (std::vector<CommandShowFile*>::const_iterator i = list.begin(); i != list.end(); ++i)
-                       delete *i;
-       }
-
  public:
        void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
@@ -157,13 +151,13 @@ class ModuleShowFile : public Module
                std::sort(newcmds.begin(), newcmds.end());
                std::set_difference(cmds.begin(), cmds.end(), newcmds.begin(), newcmds.end(), removed.begin());
 
-               DelAll(removed);
+               stdalgo::delete_all(removed);
                cmds.swap(newcmds);
        }
 
        ~ModuleShowFile()
        {
-               DelAll(cmds);
+               stdalgo::delete_all(cmds);
        }
 
        Version GetVersion() CXX11_OVERRIDE