Changeset 1261

Show
Ignore:
Timestamp:
01/31/10 21:57:19 (1 month ago)
Author:
astrange
Message:

Cleanup stringWithString: calls in pref pane.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CPFPerianPrefPaneController.m

    r1259 r1261  
    124124        value = CFPreferencesCopyAppValue(key, appID); 
    125125        if(value && CFGetTypeID(value) == CFStringGetTypeID()) 
    126                 ret = [NSString stringWithString:(NSString *)value]; 
    127          
    128         if(value) 
    129                 CFRelease(value); 
     126                ret = [(NSString *)value autorelease]; 
    130127         
    131128        return ret; 
     
    163160        if(userInstallation) 
    164161                return NSHomeDirectory(); 
    165         return [NSString stringWithString:@"/"]
     162        return @"/"
    166163} 
    167164 
     
    975972- (IBAction)launchDonate:(id)sender  
    976973{ 
    977          
    978974        [[NSWorkspace sharedWorkspace] openURL:perianDonateURL]; 
    979975}  
  • trunk/ECQTComponent.m

    r1147 r1261  
    106106        } 
    107107 
    108         NSString* name = [NSString stringWithString:@"Unknown"]
     108        NSString* name = @"Unknown"
    109109         
    110110        short saveRes = CurResFile();