mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Tweaks to avoid compiler warnings with gcc-4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
59fed7cd35
commit
9ac16024f5
53 changed files with 502 additions and 322 deletions
|
@ -40,8 +40,19 @@ static SEL oaiSel;
|
|||
|
||||
static Class GSInlineArrayClass;
|
||||
|
||||
@class GSArrayEnumerator;
|
||||
@class GSArrayEnumeratorReverse;
|
||||
@class GSArray;
|
||||
|
||||
@interface GSArrayEnumerator : NSEnumerator
|
||||
{
|
||||
GSArray *array;
|
||||
unsigned pos;
|
||||
}
|
||||
- (id) initWithArray: (GSArray*)anArray;
|
||||
@end
|
||||
|
||||
@interface GSArrayEnumeratorReverse : GSArrayEnumerator
|
||||
@end
|
||||
|
||||
|
||||
@interface GSArray : NSArray
|
||||
{
|
||||
|
@ -813,28 +824,24 @@ static Class GSInlineArrayClass;
|
|||
|
||||
- (NSEnumerator*) objectEnumerator
|
||||
{
|
||||
return AUTORELEASE([[GSArrayEnumerator allocWithZone: NSDefaultMallocZone()]
|
||||
initWithArray: self]);
|
||||
GSArrayEnumerator *enumerator;
|
||||
|
||||
enumerator = [GSArrayEnumerator allocWithZone: NSDefaultMallocZone()];
|
||||
return AUTORELEASE([enumerator initWithArray: (GSArray*)self]);
|
||||
}
|
||||
|
||||
- (NSEnumerator*) reverseObjectEnumerator
|
||||
{
|
||||
return AUTORELEASE([[GSArrayEnumeratorReverse allocWithZone:
|
||||
NSDefaultMallocZone()] initWithArray: self]);
|
||||
GSArrayEnumeratorReverse *enumerator;
|
||||
|
||||
enumerator = [GSArrayEnumeratorReverse allocWithZone: NSDefaultMallocZone()];
|
||||
return AUTORELEASE([enumerator initWithArray: (GSArray*)self]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@interface GSArrayEnumerator : NSEnumerator
|
||||
{
|
||||
GSArray *array;
|
||||
unsigned pos;
|
||||
}
|
||||
- (id) initWithArray: (GSArray*)anArray;
|
||||
@end
|
||||
|
||||
@implementation GSArrayEnumerator
|
||||
|
||||
- (id) initWithArray: (GSArray*)anArray
|
||||
|
@ -861,9 +868,6 @@ static Class GSInlineArrayClass;
|
|||
|
||||
@end
|
||||
|
||||
@interface GSArrayEnumeratorReverse : GSArrayEnumerator
|
||||
@end
|
||||
|
||||
@implementation GSArrayEnumeratorReverse
|
||||
|
||||
- (id) initWithArray: (GSArray*)anArray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue