]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/c++/OSCollectionIterator.cpp
xnu-6153.11.26.tar.gz
[apple/xnu.git] / libkern / c++ / OSCollectionIterator.cpp
index 93a2433e60ab554b3f3bda6caf8624834f481796..cc60901c8a388380d9b0a6426b54482dc3541ef3 100644 (file)
@@ -45,7 +45,7 @@ OSCollectionIterator::initWithCollection(const OSCollection *inColl)
 
        inColl->retain();
        collection = inColl;
-       collIterator = 0;
+       collIterator = NULL;
        initialUpdateStamp = 0;
        valid = false;
 
@@ -59,7 +59,7 @@ OSCollectionIterator::withCollection(const OSCollection *inColl)
 
        if (me && !me->initWithCollection(inColl)) {
                me->release();
-               return 0;
+               return NULL;
        }
 
        return me;
@@ -71,12 +71,12 @@ OSCollectionIterator::free()
        if (collIterator) {
                kfree(collIterator, collection->iteratorSize());
                OSCONTAINER_ACCUMSIZE(-((size_t) collection->iteratorSize()));
-               collIterator = 0;
+               collIterator = NULL;
        }
 
        if (collection) {
                collection->release();
-               collection = 0;
+               collection = NULL;
        }
 
        super::free();
@@ -128,9 +128,9 @@ OSCollectionIterator::getNextObject()
        bool retVal;
 
        if (!isValid()) {
-               return 0;
+               return NULL;
        }
 
        retVal = collection->getNextObjectForIterator(collIterator, &retObj);
-       return (retVal)? retObj : 0;
+       return (retVal)? retObj : NULL;
 }