]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make RemoveCommand private.
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 17 Dec 2006 02:58:57 +0000 (02:58 +0000)
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 17 Dec 2006 02:58:57 +0000 (02:58 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6030 e03df62e-2008-0410-955e-edbf42e46eb7

include/command_parse.h

index b9e57035dde3a3406c3bae006c1525a3dd53e5c6..5750416db1806208e408af97170db3935dd713ed 100644 (file)
@@ -72,6 +72,12 @@ class CommandParser : public classbase
         */
        void LoadCommand(const char* name);
 
+       /** Removes a command if the sources match. Used as a helper for
+        *  safe hash_map delete while iter in RemoveCommands(const char* source).
+        */
+       void RemoveCommand(nspace::hash_map<std::string,command_t*>::iterator safei, const char* source);
+
+
  public:
        /** Command list, a hash_map of command names to command_t*
         */
@@ -175,8 +181,6 @@ class CommandParser : public classbase
         */
        bool RemoveCommands(const char* source);
 
-       void RemoveCommand(nspace::hash_map<std::string,command_t*>::iterator safei, const char* source);
-
        /** Add a new command to the commands hash
         * @param f The new command_t to add to the list
         * @param so_handle The handle to the shared object where the command can be found.