Fixed: Removed all warnings of conflicting return and parameter types caused by the new compiler

This commit is contained in:
Martin Carlberg
2013-08-12 16:46:14 +02:00
parent 1cfc8139b9
commit bb58a206a8
82 changed files with 202 additions and 189 deletions
+5 -5
View File
@@ -122,7 +122,7 @@ var concat = Array.prototype.concat,
@param aCount the number of objects in the JS Array
@return a new CPArray containing the specified objects
*/
+ (id)arrayWithObjects:(id)objects count:(unsigned)aCount
+ (id)arrayWithObjects:(id)objects count:(CPUInteger)aCount
{
return [[self alloc] initWithObjects:objects count:aCount];
}
@@ -174,13 +174,13 @@ var concat = Array.prototype.concat,
@param aCount the number of objects in \c objects
@return the initialized CPArray
*/
- (id)initWithObjects:(id)objects count:(unsigned)aCount
- (id)initWithObjects:(CPArray)objects count:(CPUInteger)aCount
{
FORWARD_TO_CONCRETE_CLASS();
}
// FIXME: This should be defined in CPMutableArray, not here.
- (id)initWithCapacity:(unsigned)aCapacity
- (id)initWithCapacity:(CPUInteger)aCapacity
{
FORWARD_TO_CONCRETE_CLASS();
}
@@ -203,7 +203,7 @@ var concat = Array.prototype.concat,
/*!
Returns the number of elements in the array
*/
- (int)count
- (CPUInteger)count
{
_CPRaiseInvalidAbstractInvocation(self, _cmd);
}
@@ -238,7 +238,7 @@ var concat = Array.prototype.concat,
Returns the object at index \c anIndex.
@throws CPRangeException if \c anIndex is out of bounds
*/
- (id)objectAtIndex:(int)anIndex
- (id)objectAtIndex:(CPUInteger)anIndex
{
_CPRaiseInvalidAbstractInvocation(self, _cmd);
}