mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix issue with initializer
This commit is contained in:
parent
1e794f8d92
commit
9bcf4ea8ad
1 changed files with 12 additions and 1 deletions
|
@ -28,6 +28,12 @@
|
|||
|
||||
// Abstract conversion...
|
||||
@implementation NSUnitConverter
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (double)baseUnitValueFromValue:(double)value
|
||||
{
|
||||
return 0.0;
|
||||
|
@ -178,7 +184,12 @@
|
|||
|
||||
- (instancetype) initWithSymbol: (NSString *)symbol converter: (NSUnitConverter *) converter
|
||||
{
|
||||
return nil;
|
||||
self = [super initWithSymbol: symbol];
|
||||
if(self != nil)
|
||||
{
|
||||
ASSIGN(_converter, converter);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (instancetype) baseUnit
|
||||
|
|
Loading…
Reference in a new issue