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
+6 -6
View File
@@ -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);
}