From a1ebd88067134e0321239728119552cc0f526465 Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 23 Jan 1996 22:39:43 +0000 Subject: [PATCH] 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 --- Source/CString.m | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/CString.m b/Source/CString.m index 80faf5450..417e6bf03 100644 --- a/Source/CString.m +++ b/Source/CString.m @@ -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;