Browse Source

hashing not a great idea here

David Rose 21 years ago
parent
commit
16128382a9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      panda/src/event/eventHandler.h

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

@@ -72,11 +72,11 @@ public:
 
 
 protected:
 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 pair<EventCallbackFunction*, void*> CallbackFunction;
   typedef pset<CallbackFunction> CallbackFunctions;
   typedef pset<CallbackFunction> CallbackFunctions;
-  typedef phash_map<string, CallbackFunctions, string_hash> CallbackHooks;
+  typedef pmap<string, CallbackFunctions> CallbackHooks;
 
 
   Hooks _hooks;
   Hooks _hooks;
   CallbackHooks _cbhooks;
   CallbackHooks _cbhooks;