Skip to content

Commit

Permalink
Fix deprecated use of +stringWithContentsOfFile:
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
ctp authored and rentzsch committed Feb 24, 2009
1 parent 69c0083 commit 7a1e849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugin/CTFsIFRSupport.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ - (void) _disableSIFR
NSString *addOnPath = [clickBundle pathForResource: jsFileName ofType: @"js"];

if( addOnPath ) {
NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath];
NSStringEncoding enc ;
NSString *sifrAddOnJS = [NSString stringWithContentsOfFile: addOnPath usedEncoding: &enc error: nil];

if (sifrAddOnJS && ![sifrAddOnJS isEqualToString: @""])
[[sifrWebView windowScriptObject] evaluateWebScript: sifrAddOnJS];
Expand Down

0 comments on commit 7a1e849

Please sign in to comment.