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:
Andrew McCallum 1996-01-23 22:39:43 +00:00
parent 15f397a9d2
commit f75394b786

View file

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