瀏覽代碼

Fix compiler warning

Sebastián Katzer 10 年之前
父節點
當前提交
829501a9a6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/ios/APPLocalNotificationOptions.m
  2. 1 1
      src/ios/UILocalNotification+APPLocalNotification.m

+ 1 - 1
src/ios/APPLocalNotificationOptions.m

@@ -46,7 +46,7 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
  */
 - (id) initWithDict:(NSDictionary*)dictionary
 {
-    self = [super init];
+    self = [self init];
 
     self.dict = dictionary;
 

+ 1 - 1
src/ios/UILocalNotification+APPLocalNotification.m

@@ -41,7 +41,7 @@ NSInteger const APPLocalNotificationTypeTriggered = 2;
  */
 - (id) initWithOptions:(NSDictionary*)dict
 {
-    self = [super init];
+    self = [self init];
 
     [self setUserInfo:dict];
     [self __init];