Use new-style method name "..ValueOfObjCType", instead of "..ValueOfType".

([CString -initWithCStringNoCopy:freeWhenDone:]): Cast away const
type.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@769 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-01-23 22:39:43 +00:00
parent d960e869cf
commit a1ebd88067

View file

@ -44,7 +44,7 @@
{ {
[super initWithType:@encode(char)]; [super initWithType:@encode(char)];
_count = strlen(aCharPtr); _count = strlen(aCharPtr);
_contents_chars = aCharPtr; _contents_chars = (char *) aCharPtr;
_free_contents = f; _free_contents = f;
return self; return self;
} }
@ -65,15 +65,17 @@
- (void) encodeWithCoder: aCoder - (void) encodeWithCoder: aCoder
{ {
[aCoder encodeValueOfType:@encode(char*) at:&_contents_chars [aCoder encodeValueOfObjCType: @encode(char*)
withName:"Concrete String content_chars"]; at: &_contents_chars
withName: @"Concrete String content_chars"];
} }
- initWithCoder: aCoder - initWithCoder: aCoder
{ {
[super initWithCoder:aCoder]; [super initWithCoder:aCoder];
[aCoder decodeValueOfType:@encode(char*) at:&_contents_chars [aCoder decodeValueOfObjCType: @encode(char*)
withName:NULL]; at: &_contents_chars
withName: NULL];
_count = strlen(_contents_chars); _count = strlen(_contents_chars);
_free_contents = YES; _free_contents = YES;
return self; return self;