mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
tweak enumerator return
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36531 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
97cecc058e
commit
119c9a28c2
3 changed files with 9 additions and 12 deletions
|
@ -99,7 +99,7 @@
|
|||
format: @"[%@%c%@] not implemented",
|
||||
NSStringFromClass([self class]), c,
|
||||
aSel ? (id)NSStringFromSelector(aSel) : (id)@"(null)"];
|
||||
return nil;
|
||||
return self; // Not reached
|
||||
}
|
||||
|
||||
- (id) shouldNotImplement: (SEL)aSel
|
||||
|
@ -111,7 +111,7 @@
|
|||
format: @"[%@%c%@] should not be implemented",
|
||||
NSStringFromClass([self class]), c,
|
||||
aSel ? (id)NSStringFromSelector(aSel) : (id)@"(null)"];
|
||||
return nil;
|
||||
return self; // Not reached
|
||||
}
|
||||
|
||||
- (id) subclassResponsibility: (SEL)aSel
|
||||
|
@ -122,7 +122,7 @@
|
|||
format: @"[%@%c%@] should be overridden by subclass",
|
||||
NSStringFromClass([self class]), c,
|
||||
aSel ? (id)NSStringFromSelector(aSel) : (id)@"(null)"];
|
||||
return nil;
|
||||
return self; // Not reached
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -238,8 +238,7 @@ static SEL appSel;
|
|||
*/
|
||||
- (NSEnumerator*) keyEnumerator
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
return [self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -248,8 +247,7 @@ static SEL appSel;
|
|||
*/
|
||||
- (id) objectForKey: (id)aKey
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return 0;
|
||||
return [self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (id) objectForKeyedSubscript: (id)aKey
|
||||
|
@ -262,8 +260,7 @@ static SEL appSel;
|
|||
*/
|
||||
- (NSEnumerator*) objectEnumerator
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
return [self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1230,8 +1227,8 @@ compareIt(id o1, id o2, void* context)
|
|||
objects: (__unsafe_unretained id[])stackbuf
|
||||
count: (NSUInteger)len
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return 0;
|
||||
[self subclassResponsibility: _cmd];
|
||||
return 0;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ static Class concreteClass = 0;
|
|||
}
|
||||
|
||||
- (id) initWithPointerFunctions: (NSPointerFunctions*)functions
|
||||
capacity: (NSUInteger)initialCapacity
|
||||
capacity: (NSUInteger)initialCapacity
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
|
|
Loading…
Reference in a new issue