mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
d960e869cf
commit
a1ebd88067
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue