mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
String usage updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6852355af1
commit
cb8b09362f
7 changed files with 31 additions and 28 deletions
|
@ -397,9 +397,9 @@ NSMapInsertKnownAbsent(NSMapTable *table, const void *key, const void *value)
|
|||
* information. Not difficult to do, just something for a later
|
||||
* date. */
|
||||
[NSException raise:NSInvalidArgumentException
|
||||
format:@"NSMapTable: illegal reinsertion of: %s -> %s",
|
||||
[NSMT_DESCRIBE_KEY(table, key) cString],
|
||||
[NSMT_DESCRIBE_VALUE(table, value) cString]];
|
||||
format:@"NSMapTable: illegal reinsertion of: %@ -> %@",
|
||||
NSMT_DESCRIBE_KEY(table, key),
|
||||
NSMT_DESCRIBE_VALUE(table, value)];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -445,8 +445,8 @@ NSStringFromMapTable(NSMapTable *table)
|
|||
* descriptions to the string. */
|
||||
while (NSNextMapEnumeratorPair(&enumerator, &key, &value))
|
||||
[string appendFormat:@"%@ = %@;",
|
||||
[(keyCallBacks.describe)(table, key) cString],
|
||||
[(valueCallBacks.describe)(table, value) cString]];
|
||||
(keyCallBacks.describe)(table, key),
|
||||
(valueCallBacks.describe)(table, value)];
|
||||
|
||||
/* Note that this string'll need to be `retain'ed. */
|
||||
return string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue