Parcourir la source

[master] Replaced a NULL ... better pointer type

Francis Dupont il y a 8 ans
Parent
commit
8d9f4d2ea9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/hooks/callout_manager.cc

+ 1 - 1
src/lib/hooks/callout_manager.cc

@@ -247,7 +247,7 @@ CalloutManager::deregisterAllCallouts(const std::string& name) {
 
     /// Construct a CalloutEntry matching the current library (the callout
     /// pointer is NULL as we are not checking that).
-    CalloutEntry target(current_library_, static_cast<void*>(0));
+    CalloutEntry target(current_library_, static_cast<CalloutPtr>(0));
 
     /// To decide if any entries were removed, we'll record the initial size
     /// of the callout vector for the hook, and compare it with the size after