mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 21:47:04 +00:00
Fixed: Removed all warnings of conflicting return and parameter types caused by the new compiler
This commit is contained in:
@@ -19,7 +19,7 @@ var concat = Array.prototype.concat,
|
||||
return [];
|
||||
}
|
||||
|
||||
+ (CPArray)array
|
||||
+ (id)array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -107,7 +107,7 @@ var concat = Array.prototype.concat,
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL)count
|
||||
- (CPUInteger)count
|
||||
{
|
||||
return self.length;
|
||||
}
|
||||
@@ -230,7 +230,7 @@ var concat = Array.prototype.concat,
|
||||
return join.call(self, aString);
|
||||
}
|
||||
|
||||
- (void)insertObject:(id)anObject atIndex:(int)anIndex
|
||||
- (void)insertObject:(id)anObject atIndex:(CPUInteger)anIndex
|
||||
{
|
||||
if (anIndex > self.length || anIndex < 0)
|
||||
_CPRaiseRangeException(self, _cmd, anIndex, self.length);
|
||||
@@ -238,7 +238,7 @@ var concat = Array.prototype.concat,
|
||||
splice.call(self, anIndex, 0, anObject);
|
||||
}
|
||||
|
||||
- (void)removeObjectAtIndex:(int)anIndex
|
||||
- (void)removeObjectAtIndex:(CPUInteger)anIndex
|
||||
{
|
||||
if (anIndex >= self.length || anIndex < 0)
|
||||
_CPRaiseRangeException(self, _cmd, anIndex, self.length);
|
||||
@@ -289,7 +289,7 @@ var concat = Array.prototype.concat,
|
||||
splice.call(self, aRange.location, aRange.length);
|
||||
}
|
||||
|
||||
- (void)replaceObjectAtIndex:(int)anIndex withObject:(id)anObject
|
||||
- (void)replaceObjectAtIndex:(CPUInteger)anIndex withObject:(id)anObject
|
||||
{
|
||||
if (anIndex >= self.length || anIndex < 0)
|
||||
_CPRaiseRangeException(self, _cmd, anIndex, self.length);
|
||||
@@ -333,7 +333,7 @@ var concat = Array.prototype.concat,
|
||||
}
|
||||
|
||||
|
||||
- (void)copy
|
||||
- (id)copy
|
||||
{
|
||||
return slice.call(self, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user