([NSGMutableCString -insertString:atIndex:]): Use -cStringNoCopy

instead of the removed method -_cStringContents.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1995 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1997-01-05 23:17:52 +00:00
parent 35381a6ad8
commit cec7d4bb60

View file

@ -1,5 +1,5 @@
/* Implementation for GNUStep of NSStrings with C-string backing
Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc.
Copyright (C) 1993,1994, 1996, 1997 Free Software Foundation, Inc.
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
Date: March 1995
@ -218,7 +218,7 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
OBJC_REALLOC(_contents_chars, char, _capacity);
}
stringIncrementCountAndMakeHoleAt((NSGMutableCStringStruct*)self, index, c);
memcpy(_contents_chars + index, [aString _cStringContents], c);
memcpy(_contents_chars + index, [aString cStringNoCopy], c);
_contents_chars[_count] = '\0';
}