summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-12-15 17:14:09 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-12-15 17:14:09 +0100
commit56af4909b89d3edfe919fe28178c18dcaa9cee47 (patch)
treefb3024b1f1ef1923fee36bbaa960659d4ce7195b /include
parentbc6090c224e2feaeaad63064100a592e5dfa4546 (diff)
Add typedef ModeParser::ModeWatcherMap, remove ModeWatchIter
Diffstat (limited to 'include')
-rw-r--r--include/mode.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/mode.h b/include/mode.h
index 364562dd7..1c2bd8f44 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -473,8 +473,6 @@ class CoreExport ModeWatcher : public classbase
virtual void AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding);
};
-typedef std::multimap<std::string, ModeWatcher*>::iterator ModeWatchIter;
-
/** The mode parser handles routing of modes and handling of mode strings.
* It marshalls, controls and maintains both ModeWatcher and ModeHandler classes,
* parses client to server MODE strings for user and channel modes, and performs
@@ -490,6 +488,10 @@ class CoreExport ModeParser : public fakederef<ModeParser>
typedef TR1NS::unordered_map<std::string, ModeHandler*, irc::insensitive, irc::StrHashComp> ModeHandlerMap;
private:
+ /** Type of the container that maps mode names to ModeWatchers
+ */
+ typedef std::multimap<std::string, ModeWatcher*> ModeWatcherMap;
+
/** Last item in the ModeType enum
*/
static const unsigned int MODETYPE_LAST = 2;
@@ -524,7 +526,7 @@ class CoreExport ModeParser : public fakederef<ModeParser>
/** Mode watcher classes
*/
- std::multimap<std::string, ModeWatcher*> modewatchermap;
+ ModeWatcherMap modewatchermap;
/** Last processed mode change
*/