_setup() corrected a problem from the last change

Removed obsolete super calls in GSTextInfo coding methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7766 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2000-10-08 20:30:08 +00:00
parent a38bc02f22
commit 45ce951b30

View file

@ -101,14 +101,12 @@
- (void) encodeWithCoder: (NSCoder*)aCoder
{
[super encodeWithCoder: aCoder];
[aCoder encodeValueOfObjCType: @encode(unsigned) at: &loc];
[aCoder encodeValueOfObjCType: @encode(id) at: &attrs];
}
- (id) initWithCoder: (NSCoder*)aCoder
{
self = [super initWithCoder: aCoder];
[aCoder decodeValueOfObjCType: @encode(unsigned) at: &loc];
[aCoder decodeValueOfObjCType: @encode(id) at: &attrs];
return self;
@ -153,7 +151,7 @@ static void _setup()
infCls = [GSTextInfo class];
infImp = [infCls methodForSelector: infSel];
a = [[NSMutableArray allocWithZone: z] initWithCapacity: 1];
a = [[NSMutableArray allocWithZone: NSDefaultMallocZone()] initWithCapacity: 1];
addImp = (void (*)())[a methodForSelector: addSel];
cntImp = (unsigned (*)())[a methodForSelector: cntSel];
insImp = (void (*)())[a methodForSelector: insSel];