Преглед изворни кода

Merge pull request #696 from jfahrenkrug/mark_dateformatter_method_args_nullable

Mark the setDateFormat method's parameter as _Nullable
August "Gus" Mueller пре 7 година
родитељ
комит
c27491ecaf
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/fmdb/FMDatabase.h

+ 2 - 2
src/fmdb/FMDatabase.h

@@ -1341,7 +1341,7 @@ typedef NS_ENUM(int, SqliteValueType) {
  @warning Note there is no direct getter for the `NSDateFormatter`, and you should not use the formatter you pass to FMDB for other purposes, as `NSDateFormatter` is not thread-safe.
  */
 
-- (void)setDateFormat:(NSDateFormatter *)format;
+- (void)setDateFormat:(NSDateFormatter * _Nullable)format;
 
 /** Convert the supplied NSString to NSDate, using the current database formatter.
  
@@ -1371,7 +1371,7 @@ typedef NS_ENUM(int, SqliteValueType) {
  @see storeableDateFormat:
  */
 
-- (NSString *)stringFromDate:(NSDate *)date;
+- (NSString * _Nullable)stringFromDate:(NSDate *)date;
 
 @end