X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fbancache.h;h=7f51ca75e673e187dccf9d4089a3ac3b68aa27e9;hb=3ae91bafe711b26ffae1aa27cfd4f5fe7bfc2347;hp=9cff918028af09ecd346b88309b8b31bf6bfabba;hpb=01ea7ce9c34bf85c8d9ec29f58bd82d6536a2162;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/bancache.h b/include/bancache.h index 9cff91802..7f51ca75e 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -18,8 +18,7 @@ */ -#ifndef BANCACHE_H -#define BANCACHE_H +#pragma once /** Stores a cached ban entry. * Each ban has one of these hashed in a hash_map to make for faster removal @@ -52,7 +51,7 @@ class CoreExport BanCacheHit /* A container of ban cache items. * must be defined after class BanCacheHit. */ -typedef std::tr1::unordered_map > BanCacheHash; +typedef TR1NS::unordered_map > BanCacheHash; /** A manager for ban cache, which allocates and deallocates and checks cached bans. */ @@ -84,5 +83,3 @@ class CoreExport BanCacheManager } ~BanCacheManager(); }; - -#endif