mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
15f397a9d2
commit
f75394b786
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue