avoid unnecessary memory allocation when updating the rpc access list

This commit is contained in:
Mitchell Livingston
2008-06-05 05:00:24 +00:00
parent 4d29a29003
commit 4951ba05d0
4 changed files with 14 additions and 15 deletions

View File

@@ -2275,7 +2275,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
icon = [[GroupsController groups] imageForIndex: groupIndex];
NSString * groupName = groupIndex != -1 ? [[GroupsController groups] nameForIndex: groupIndex]
: NSLocalizedString(@"None", "Groups -> Button");
toolTip = [NSString stringWithFormat: @"%@: %@", NSLocalizedString(@"Group", "Groups -> Button"), groupName];
toolTip = [NSLocalizedString(@"Group", "Groups -> Button") stringByAppendingFormat: @": %@", groupName];
}
//tiger doesn't have built-in image scaling in buttons