فهرست منبع

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];