瀏覽代碼

Fixed a deprecation warning in the test file.

August Mueller 15 年之前
父節點
當前提交
b873e06547
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]) {