Loading...
libkern/c++/OSCollectionIterator.cpp xnu-6153.61.1 xnu-4903.270.47
--- xnu/xnu-6153.61.1/libkern/c++/OSCollectionIterator.cpp
+++ xnu/xnu-4903.270.47/libkern/c++/OSCollectionIterator.cpp
@@ -45,7 +45,7 @@
 
 	inColl->retain();
 	collection = inColl;
-	collIterator = NULL;
+	collIterator = 0;
 	initialUpdateStamp = 0;
 	valid = false;
 
@@ -59,7 +59,7 @@
 
 	if (me && !me->initWithCollection(inColl)) {
 		me->release();
-		return NULL;
+		return 0;
 	}
 
 	return me;
@@ -71,12 +71,12 @@
 	if (collIterator) {
 		kfree(collIterator, collection->iteratorSize());
 		OSCONTAINER_ACCUMSIZE(-((size_t) collection->iteratorSize()));
-		collIterator = NULL;
+		collIterator = 0;
 	}
 
 	if (collection) {
 		collection->release();
-		collection = NULL;
+		collection = 0;
 	}
 
 	super::free();
@@ -128,9 +128,9 @@
 	bool retVal;
 
 	if (!isValid()) {
-		return NULL;
+		return 0;
 	}
 
 	retVal = collection->getNextObjectForIterator(collIterator, &retObj);
-	return (retVal)? retObj : NULL;
+	return (retVal)? retObj : 0;
 }