mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
([NSGCString -emptyCopy]): Use [super emptyCopy], not [super allocCopy].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@691 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
291b264f28
commit
cc256506a8
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Implementation for GNUStep of NSStrings with C-string backing
|
/* Implementation for GNUStep of NSStrings with C-string backing
|
||||||
Copyright (C) 1993,1994 Free Software Foundation, Inc.
|
Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: March 1995
|
Date: March 1995
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
/* Empty copy must empty an allocCopy'ed version of self */
|
/* Empty copy must empty an allocCopy'ed version of self */
|
||||||
- emptyCopy
|
- emptyCopy
|
||||||
{
|
{
|
||||||
NSGCString *copy = [super allocCopy];
|
NSGCString *copy = [super emptyCopy];
|
||||||
OBJC_MALLOC(copy->_contents_chars, char, _count+1);
|
OBJC_MALLOC(copy->_contents_chars, char, _count+1);
|
||||||
copy->_count = 0;
|
copy->_count = 0;
|
||||||
copy->_contents_chars[0] = '\0';
|
copy->_contents_chars[0] = '\0';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue