Skip to content

Commit 89c3514

Browse files
[gardening] NULL → nullptr
1 parent 9138a64 commit 89c3514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PrintAsObjC/PrintAsObjC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
730730
&& !AvAttr->isUnconditionallyUnavailable()) {
731731
continue;
732732
}
733-
const char *plat = NULL;
733+
const char *plat = nullptr;
734734
switch (AvAttr->Platform) {
735735
case PlatformKind::OSX:
736736
plat = "macos";
@@ -759,7 +759,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
759759
default:
760760
break;
761761
}
762-
if (plat == NULL) continue;
762+
if (!plat) continue;
763763
os << " SWIFT_AVAILABILITY(" << plat;
764764
if (AvAttr->isUnconditionallyUnavailable()) {
765765
os << ",unavailable";

0 commit comments

Comments
 (0)