mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
([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:
parent
35381a6ad8
commit
cec7d4bb60
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, 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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue