mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-21 18:00:43 +00:00
Fixed: Removed all warnings of conflicting return and parameter types caused by the new compiler
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user