diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:42:38 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:42:38 +0200 |
commit | 97faccd6c5edd79590c1390e642bd3c34e519e0a (patch) | |
tree | 3d4ffd21120191cd77b4d28237aca4cf48900c7e /include | |
parent | 15d0256e94f382b823dbb457218e1e3d2a462e16 (diff) |
Remove global Commandtable typedef
Diffstat (limited to 'include')
-rw-r--r-- | include/command_parse.h | 4 | ||||
-rw-r--r-- | include/typedefs.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index 2abbdb607..0f39d3586 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -30,7 +30,7 @@ class CoreExport CommandParser { public: - typedef Commandtable CommandMap; + typedef TR1NS::unordered_map<std::string, Command*> CommandMap; private: /** Process a command from a user. @@ -41,7 +41,7 @@ class CoreExport CommandParser /** Command list, a hash_map of command names to Command* */ - Commandtable cmdlist; + CommandMap cmdlist; public: /** Default constructor. diff --git a/include/typedefs.h b/include/typedefs.h index 336084c55..c883a0859 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -100,10 +100,6 @@ typedef std::map<std::string, reference<OperInfo> > OperIndex; /** Files read by the configuration */ typedef std::map<std::string, file_cache> ConfigFileCache; -/** A hash of commands used by the core - */ -typedef TR1NS::unordered_map<std::string, Command*> Commandtable; - /** Membership list of a channel */ typedef std::map<User*, Membership*> UserMembList; /** Iterator of UserMembList */ |