This commit is contained in:
zhuling13 2014-06-05 01:36:05 -07:00
parent 40a2186093
commit 0c5350c58d
2 changed files with 0 additions and 5 deletions

View File

@ -15,7 +15,6 @@
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.

View File

@ -16,13 +16,11 @@ extern int CodecUtMain(int argc, char** argv);
int GetDocumentPath(char *pPath, unsigned long *pLen)
{
if (!pLen) return 1;
unsigned long uPathLen = *pLen;
if(NULL == pPath || 0 == uPathLen)
{
return 1;
}
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
if([paths count] == 0)
{
@ -33,7 +31,6 @@ int GetDocumentPath(char *pPath, unsigned long *pLen)
unsigned long uDocumentPathLen = [escapedPath length];
uPathLen= (uDocumentPathLen <= uPathLen) ? uDocumentPathLen : uPathLen;
memcpy(pPath,[escapedPath UTF8String],uPathLen);
return 0;
}
@ -51,7 +48,6 @@ int main(int argc, char * argv[])
char path[1024] = "";
GetDocumentPath(xmlWritePath,&uPathLen);
sprintf(path, "%s%s",xmlWritePath,"/codec_unittest.xml");
#endif
argc =2;
argv[0]="codec_unittest";