mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(NSStringFromHashTable): Instead of @%, use %s and [s cStringNoCopy].
(NSHashInsertKnownAbsent): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1557 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7c3556c054
commit
e481a533b9
1 changed files with 4 additions and 3 deletions
|
@ -367,8 +367,8 @@ NSHashInsertKnownAbsent(NSHashTable *table, const void *element)
|
|||
* information. Not difficult to do, just something for a later
|
||||
* date. */
|
||||
[NSException raise:NSInvalidArgumentException
|
||||
format:@"NSHashTable: illegal reinsertion of: %@",
|
||||
NSHT_DESCRIBE(table, element)];
|
||||
format:@"NSHashTable: illegal reinsertion of: %s",
|
||||
[NSHT_DESCRIBE(table, element) cStringNoCopy]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -421,7 +421,8 @@ NSStringFromHashTable(NSHashTable *table)
|
|||
/* Iterate over the elements of TABLE, appending the description of
|
||||
* each to the mutable string STRING. */
|
||||
while ((pointer = NSNextHashEnumeratorItem(&enumerator)) != 0)
|
||||
[string appendFormat:@"%@;\n", NSHT_DESCRIBE(table, pointer)];
|
||||
[string appendFormat:@"%s;\n",
|
||||
[NSHT_DESCRIBE(table, pointer) cStringNoCopy]];
|
||||
|
||||
/* STRING is already autoreleased. */
|
||||
return (NSString *) string;
|
||||
|
|
Loading…
Reference in a new issue