Loading...
--- xnu/xnu-344.2/libkern/c++/OSArray.cpp
+++ xnu/xnu-201.42.3/libkern/c++/OSArray.cpp
@@ -93,7 +93,7 @@
return false;
array[count++] = newObject;
- newObject->taggedRetain(OSTypeID(OSCollection));
+ newObject->retain();
}
return true;
@@ -206,7 +206,7 @@
haveUpdated();
for (i = 0; i < count; i++)
- array[i]->taggedRelease(OSTypeID(OSCollection));
+ array[i]->release();
count = 0;
}
@@ -233,7 +233,7 @@
array[i] = array[i-1];
}
array[index] = anObject;
- anObject->taggedRetain(OSTypeID(OSCollection));
+ anObject->retain();
count++;
return true;
@@ -256,7 +256,7 @@
const OSMetaClassBase *newObject = otherArray->getObject(i);
array[count++] = newObject;
- newObject->taggedRetain(OSTypeID(OSCollection));
+ newObject->retain();
}
return true;
@@ -273,9 +273,9 @@
haveUpdated();
oldObject = array[index];
array[index] = anObject;
- anObject->taggedRetain(OSTypeID(OSCollection));
-
- oldObject->taggedRelease(OSTypeID(OSCollection));
+ anObject->retain();
+
+ oldObject->release();
}
void OSArray::removeObject(unsigned int index)
@@ -293,7 +293,7 @@
for (i = index; i < count; i++)
array[i] = array[i+1];
- oldObject->taggedRelease(OSTypeID(OSCollection));
+ oldObject->release();
}
bool OSArray::isEqualTo(const OSArray *anArray) const