mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
@ -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…
Add table
Add a link
Reference in a new issue