Loading...
--- xnu/xnu-517.3.7/libkern/c++/OSSet.cpp
+++ xnu/xnu-344.49/libkern/c++/OSSet.cpp
@@ -54,7 +54,7 @@
bool OSSet::initWithObjects(const OSObject *inObjects[],
unsigned int inCount,
- unsigned int inCapacity)
+ unsigned int inCapacity = 0)
{
unsigned int capacity = inCount;
@@ -79,7 +79,7 @@
}
bool OSSet::initWithArray(const OSArray *inArray,
- unsigned int inCapacity)
+ unsigned int inCapacity = 0)
{
if ( !inArray )
return false;
@@ -89,7 +89,7 @@
}
bool OSSet::initWithSet(const OSSet *inSet,
- unsigned int inCapacity)
+ unsigned int inCapacity = 0)
{
return initWithArray(inSet->members, inCapacity);
}
@@ -99,7 +99,7 @@
OSSet *me = new OSSet;
if (me && !me->initWithCapacity(capacity)) {
- me->release();
+ me->free();
return 0;
}
@@ -108,12 +108,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;
}
@@ -121,12 +121,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;
}
@@ -134,12 +134,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;
}