summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/command_parse.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index b9e57035d..5750416db 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -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.