Prechádzať zdrojové kódy

Fixed a deprecation warning in the test file.

August Mueller 15 rokov pred
rodič
commit
b873e06547
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/fmdb.m

+ 1 - 1
src/fmdb.m

@@ -9,7 +9,7 @@ int main (int argc, const char * argv[]) {
     
     // delete the old db.
     NSFileManager *fileManager = [NSFileManager defaultManager];
-    [fileManager removeFileAtPath:@"/tmp/tmp.db" handler:nil];
+    [fileManager removeItemAtPath:@"/tmp/tmp.db" error:nil];
     
     FMDatabase* db = [FMDatabase databaseWithPath:@"/tmp/tmp.db"];
     if (![db open]) {