Pārlūkot izejas kodu

hashing not a great idea here

David Rose 21 gadi atpakaļ
vecāks
revīzija
16128382a9
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      panda/src/event/eventHandler.h

+ 3 - 3
panda/src/event/eventHandler.h

@@ -72,11 +72,11 @@ public:
 
 protected:
 
-  typedef phash_set<EventFunction *, pointer_hash> Functions;
-  typedef phash_map<string, Functions, string_hash> Hooks;
+  typedef pset<EventFunction *> Functions;
+  typedef pmap<string, Functions> Hooks;
   typedef pair<EventCallbackFunction*, void*> CallbackFunction;
   typedef pset<CallbackFunction> CallbackFunctions;
-  typedef phash_map<string, CallbackFunctions, string_hash> CallbackHooks;
+  typedef pmap<string, CallbackFunctions> CallbackHooks;
 
   Hooks _hooks;
   CallbackHooks _cbhooks;