summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/TransGCAttrs.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-05-07 06:21:57 +0000
committerCraig Topper <craig.topper@gmail.com>2014-05-07 06:21:57 +0000
commit8ae12039925631052e0da159782e7513b8e7d450 (patch)
tree03a5aea5a563602644c69b72ef3c8b27fb076c09 /clang/lib/ARCMigrate/TransGCAttrs.cpp
parent15007ba94a581bac1cf167db0f18ea607823477f (diff)
downloadbcm5719-llvm-8ae12039925631052e0da159782e7513b8e7d450.tar.gz
bcm5719-llvm-8ae12039925631052e0da159782e7513b8e7d450.zip
[C++11] Use 'nullptr'.
llvm-svn: 208163
Diffstat (limited to 'clang/lib/ARCMigrate/TransGCAttrs.cpp')
-rw-r--r--clang/lib/ARCMigrate/TransGCAttrs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/ARCMigrate/TransGCAttrs.cpp b/clang/lib/ARCMigrate/TransGCAttrs.cpp
index cbb3d12d746..10fce19b6f1 100644
--- a/clang/lib/ARCMigrate/TransGCAttrs.cpp
+++ b/clang/lib/ARCMigrate/TransGCAttrs.cpp
@@ -80,7 +80,7 @@ public:
}
}
- bool handleAttr(AttributedTypeLoc TL, Decl *D = 0) {
+ bool handleAttr(AttributedTypeLoc TL, Decl *D = nullptr) {
if (TL.getAttrKind() != AttributedType::attr_objc_ownership)
return false;
@@ -149,9 +149,9 @@ public:
return false;
if (ObjCContainerDecl *ContD = dyn_cast<ObjCContainerDecl>(D)) {
if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(ContD))
- return ID->getImplementation() != 0;
+ return ID->getImplementation() != nullptr;
if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(ContD))
- return CD->getImplementation() != 0;
+ return CD->getImplementation() != nullptr;
if (isa<ObjCImplDecl>(ContD))
return true;
return false;
OpenPOWER on IntegriCloud