X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fprocesses%2Fsafe_callback.cpp;h=a79c8f784fd291edb1ab43bfd3275f400c43727c;hb=ef338226ccf699c8d8a149d9b74e9888175c7099;hp=ca62be94ad4cf0ea9e1a752abf473f77178f70c8;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/library/processes/safe_callback.cpp b/nucleus/library/processes/safe_callback.cpp index ca62be94..a79c8f78 100644 --- a/nucleus/library/processes/safe_callback.cpp +++ b/nucleus/library/processes/safe_callback.cpp @@ -64,14 +64,14 @@ public: // returns true if the "object" is listed as valid. bool listed(void *object) { auto_synchronizer l(_lock); - live_object_info *loi = NIL; + live_object_info *loi = NULL_POINTER; return _objects.find(object, loi); } // adds the "object" to the list, or if it's already there, ups the refcount. void add(void *object) { auto_synchronizer l(_lock); - live_object_info *loi = NIL; + live_object_info *loi = NULL_POINTER; if (!_objects.find(object, loi)) { // this is a new item. _objects.add(object, new live_object_info); @@ -85,7 +85,7 @@ public: // references. void remove(void *object) { auto_synchronizer l(_lock); - live_object_info *loi = NIL; + live_object_info *loi = NULL_POINTER; if (!_objects.find(object, loi)) { // this item doesn't exist??? bad usage has occurred.. return;