Permalink
Browse files

Changed command line arguments parsing to stringWithCString:encoding:…

… to avoid compile time warning about depreciated method.
  • Loading branch information...
1 parent 78ab397 commit 1a23b8e8dda657563f21e1c581e7ed0540016d88 @tomaz committed Sep 14, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 CommandLineParser.m
View
@@ -303,7 +303,7 @@ - (void) parseCommandLineArguments:(const char**) argv
[commandLineArguments removeAllObjects];
for (int i=0; i<argc; i++)
{
- NSString* arg = [NSString stringWithCString:argv[i]];
+ NSString* arg = [NSString stringWithCString:argv[i] encoding:NSASCIIStringEncoding];
[commandLineArguments addObject:arg];
}

0 comments on commit 1a23b8e

Please sign in to comment.