summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-20 17:17:07 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-20 17:17:25 (GMT)
commitcb36e91eff65127f9b99fa02c7ff6b9a0a2d55b8 (patch)
tree05b701f26f6851d22577ae6a7327d7989ba4f4e7 /Source/cmXCodeObject.cxx
parent08512646e1c1ad23e75922a79e111365740b5cb7 (diff)
parenta5279ae553caba7ab875ee06d2ce2d079907145d (diff)
downloadCMake-cb36e91eff65127f9b99fa02c7ff6b9a0a2d55b8.zip
CMake-cb36e91eff65127f9b99fa02c7ff6b9a0a2d55b8.tar.gz
CMake-cb36e91eff65127f9b99fa02c7ff6b9a0a2d55b8.tar.bz2
Merge topic 'cxx11-nullptr'
a5279ae5 Use C++11 nullptr (cont.) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1283
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r--Source/cmXCodeObject.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 0def8c3..957adb4 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -42,8 +42,8 @@ cmXCodeObject::~cmXCodeObject()
cmXCodeObject::cmXCodeObject(PBXType ptype, Type type)
{
this->Version = 15;
- this->Target = 0;
- this->Object = 0;
+ this->Target = nullptr;
+ this->Object = nullptr;
this->IsA = ptype;
@@ -71,7 +71,7 @@ cmXCodeObject::cmXCodeObject(PBXType ptype, Type type)
this->TypeValue = type;
if (this->TypeValue == OBJECT) {
- this->AddAttribute("isa", 0);
+ this->AddAttribute("isa", nullptr);
}
}
@@ -86,7 +86,7 @@ bool cmXCodeObject::IsEmpty() const
return this->ObjectAttributes.empty();
case OBJECT_REF:
case OBJECT:
- return this->Object == 0;
+ return this->Object == nullptr;
}
return true; // unreachable, but quiets warnings
}