Tidied encoding.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3092 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-10-20 15:40:25 +00:00
parent c37ffbd383
commit 5049319df5

View file

@ -176,13 +176,13 @@
- (void) encodeWithCoder:(NSCoder*)coder - (void) encodeWithCoder:(NSCoder*)coder
{ {
[super encodeWithCoder:coder]; [super encodeWithCoder:coder];
[coder encodeValueOfObjCType:"d" at:&seconds_since_ref]; [coder encodeValueOfObjCType:@encode(NSTimeInterval) at:&seconds_since_ref];
} }
- (id) initWithCoder:(NSCoder*)coder - (id) initWithCoder:(NSCoder*)coder
{ {
self = [super initWithCoder:coder]; self = [super initWithCoder:coder];
[coder decodeValueOfObjCType:"d" at:&seconds_since_ref]; [coder decodeValueOfObjCType:@encode(NSTimeInterval) at:&seconds_since_ref];
return self; return self;
} }