Skip to content

Commit 057d0df

Browse files
authored
Make FIRDocumentChange a closed enum (#3960)
1 parent 03ecafd commit 057d0df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Firestore/Source/Public/FIRDocumentChange.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ NS_ASSUME_NONNULL_BEGIN
2121
@class FIRQueryDocumentSnapshot;
2222

2323
/** An enumeration of document change types. */
24-
typedef NS_ENUM(NSInteger, FIRDocumentChangeType) {
24+
#if defined(NS_CLOSED_ENUM)
25+
typedef NS_CLOSED_ENUM(NSInteger, FIRDocumentChangeType)
26+
#else
27+
typedef NS_ENUM(NSInteger, FIRDocumentChangeType)
28+
#endif
29+
{
2530
/** Indicates a new document was added to the set of documents matching the query. */
2631
FIRDocumentChangeTypeAdded,
2732
/** Indicates a document within the query was modified. */

0 commit comments

Comments
 (0)