From 56af4909b89d3edfe919fe28178c18dcaa9cee47 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 15 Dec 2014 17:14:09 +0100 Subject: Add typedef ModeParser::ModeWatcherMap, remove ModeWatchIter --- include/mode.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/mode.h') 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::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 typedef TR1NS::unordered_map ModeHandlerMap; private: + /** Type of the container that maps mode names to ModeWatchers + */ + typedef std::multimap ModeWatcherMap; + /** Last item in the ModeType enum */ static const unsigned int MODETYPE_LAST = 2; @@ -524,7 +526,7 @@ class CoreExport ModeParser : public fakederef /** Mode watcher classes */ - std::multimap modewatchermap; + ModeWatcherMap modewatchermap; /** Last processed mode change */ -- cgit v1.2.3