mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
NSObject: Change return type of setVersion: from id to void
This commit is contained in:
parent
ac38295f64
commit
a66d25598e
2 changed files with 2 additions and 3 deletions
|
@ -363,7 +363,7 @@ GS_EXPORT_CLASS GS_ROOT_CLASS
|
|||
+ (BOOL) isSubclassOfClass: (Class)aClass;
|
||||
+ (id) new;
|
||||
+ (void) poseAsClass: (Class)aClassObject;
|
||||
+ (id) setVersion: (NSInteger)aVersion;
|
||||
+ (void) setVersion: (NSInteger)aVersion;
|
||||
+ (NSInteger) version;
|
||||
|
||||
- (id) awakeAfterUsingCoder: (NSCoder*)aDecoder;
|
||||
|
|
|
@ -2220,14 +2220,13 @@ static id gs_weak_load(id obj)
|
|||
/**
|
||||
* Sets the version number of the receiving class. Should be nonnegative.
|
||||
*/
|
||||
+ (id) setVersion: (NSInteger)aVersion
|
||||
+ (void) setVersion: (NSInteger)aVersion
|
||||
{
|
||||
if (aVersion < 0)
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"%s +setVersion: may not set a negative version",
|
||||
GSClassNameFromObject(self)];
|
||||
class_setVersion(self, aVersion);
|
||||
return self;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue