mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Make initWithSymbol:coefficient:converter: into a full initializer. Use self instead of creating a new object.
This commit is contained in:
parent
0eb0c75022
commit
4dc072a25a
1 changed files with 5 additions and 6 deletions
|
@ -218,13 +218,12 @@
|
|||
{
|
||||
NSUnitConverterLinear *converter = [[NSUnitConverterLinear alloc] initWithCoefficient: coefficient
|
||||
constant: constant];
|
||||
NSDimension *result = [[[self class] alloc] initWithSymbol: symbol
|
||||
converter: converter];
|
||||
AUTORELEASE(converter);
|
||||
AUTORELEASE(result);
|
||||
return result;
|
||||
}
|
||||
self = [self initWithSymbol: symbol
|
||||
converter: converter];
|
||||
|
||||
AUTORELEASE(converter);
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (instancetype) baseUnit
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue