From da34a2b33e1f600ec11172f599384b9a92835403 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 19 May 2015 02:24:14 -0400 Subject: Replace instances of std::map with StringMap Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators --- src/ban.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ban.h') diff --git a/src/ban.h b/src/ban.h index 02a472f51..5db7179de 100644 --- a/src/ban.h +++ b/src/ban.h @@ -20,8 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef BAN_HEADER #define BAN_HEADER -#include -#include +#include "util/string.h" #include "jthread/jthread.h" #include "jthread/jmutex.h" #include "exceptions.h" @@ -43,7 +42,7 @@ public: private: JMutex m_mutex; std::string m_banfilepath; - std::map m_ips; + StringMap m_ips; bool m_modified; }; -- cgit v1.2.3