Loading...
--- xnu/xnu-517.11.1/libkern/c++/OSSet.cpp
+++ xnu/xnu-201/libkern/c++/OSSet.cpp
@@ -51,7 +51,7 @@
bool OSSet::initWithObjects(const OSObject *inObjects[],
unsigned int inCount,
- unsigned int inCapacity)
+ unsigned int inCapacity = 0)
{
unsigned int capacity = inCount;
@@ -76,7 +76,7 @@
}
bool OSSet::initWithArray(const OSArray *inArray,
- unsigned int inCapacity)
+ unsigned int inCapacity = 0)
{
if ( !inArray )
return false;
@@ -86,7 +86,7 @@
}
bool OSSet::initWithSet(const OSSet *inSet,
- unsigned int inCapacity)
+ unsigned int inCapacity = 0)
{
return initWithArray(inSet->members, inCapacity);
}
@@ -96,7 +96,7 @@
OSSet *me = new OSSet;
if (me && !me->initWithCapacity(capacity)) {
- me->release();
+ me->free();
return 0;
}
@@ -105,12 +105,12 @@
OSSet *OSSet::withObjects(const OSObject *objects[],
unsigned int count,
- unsigned int capacity)
+ unsigned int capacity = 0)
{
OSSet *me = new OSSet;
if (me && !me->initWithObjects(objects, count, capacity)) {
- me->release();
+ me->free();
return 0;
}
@@ -118,12 +118,12 @@
}
OSSet *OSSet::withArray(const OSArray *array,
- unsigned int capacity)
+ unsigned int capacity = 0)
{
OSSet *me = new OSSet;
if (me && !me->initWithArray(array, capacity)) {
- me->release();
+ me->free();
return 0;
}
@@ -131,12 +131,12 @@
}
OSSet *OSSet::withSet(const OSSet *set,
- unsigned int capacity)
+ unsigned int capacity = 0)
{
OSSet *me = new OSSet;
if (me && !me->initWithSet(set, capacity)) {
- me->release();
+ me->free();
return 0;
}