mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
2e58b39376
commit
0fe0f3ff9a
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/* 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>
|
||||
Date: March 1995
|
||||
|
@ -76,7 +76,7 @@
|
|||
/* Empty copy must empty an allocCopy'ed version of self */
|
||||
- emptyCopy
|
||||
{
|
||||
NSGCString *copy = [super allocCopy];
|
||||
NSGCString *copy = [super emptyCopy];
|
||||
OBJC_MALLOC(copy->_contents_chars, char, _count+1);
|
||||
copy->_count = 0;
|
||||
copy->_contents_chars[0] = '\0';
|
||||
|
|
Loading…
Reference in a new issue