Replace some instances of -UTF8String with -fileSystemRepresentation.

This commit is contained in:
C.W. Betts
2019-07-20 13:38:16 -06:00
parent eef4799388
commit f1616c5065
6 changed files with 20 additions and 20 deletions

View File

@@ -45,7 +45,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
//try to parse the torrent file
tr_info inf;
tr_ctor * ctor = tr_ctorNew(NULL);
tr_ctorSetMetainfoFromFile(ctor, [[(__bridge NSURL *)url path] UTF8String]);
tr_ctorSetMetainfoFromFile(ctor, [[(__bridge NSURL *)url path] fileSystemRepresentation]);
const int err = tr_torrentParse(ctor, &inf);
tr_ctorFree(ctor);
if (err)