Permalink
Browse files

Save creating an intermediate NSArray

  • Loading branch information...
1 parent eb4d504 commit a449b158ee5e580efec02786b25a2e88b581a73c @dbr committed May 18, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 TableListCon.m
View
@@ -29,8 +29,7 @@ - (NSDragOperation)tableView:(NSTableView*)tv
- (void)addFileToList:(NSString*)path
{
- NSArray *components = [path pathComponents];
- NSString *old_filename = [components lastObject];
+ NSString *old_filename = [[path pathComponents] lastObject];
tvdb_api_wrapper *api = [[tvdb_api_wrapper alloc] init];
[api autorelease];

0 comments on commit a449b15

Please sign in to comment.