mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Quick hack to try to fix initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29393 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1890339060
commit
b3a79482e5
1 changed files with 14 additions and 0 deletions
|
@ -717,6 +717,20 @@ static Class doubleNumberClass;
|
|||
return RETAIN(self);
|
||||
}
|
||||
|
||||
- (id) initWithBytes: (const void*)data objCType: (const char*)type
|
||||
{
|
||||
if (GSObjCClass(self) == abstractClass)
|
||||
{
|
||||
Class c = [abstractClass valueClassWithObjCType: type];
|
||||
|
||||
[self release];
|
||||
self = (id)NSAllocateObject(c, 0, GSObjCZone(self));
|
||||
return [self initWithBytes: data objCType: type];
|
||||
}
|
||||
[self subclassResponsibility: _cmd];
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id) initWithChar: (signed char)value
|
||||
{
|
||||
RELEASE(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue