diff options
author | Brad King <brad.king@kitware.com> | 2017-09-20 17:17:07 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-20 17:17:25 (GMT) |
commit | cb36e91eff65127f9b99fa02c7ff6b9a0a2d55b8 (patch) | |
tree | 05b701f26f6851d22577ae6a7327d7989ba4f4e7 /Source/cmXCodeObject.cxx | |
parent | 08512646e1c1ad23e75922a79e111365740b5cb7 (diff) | |
parent | a5279ae553caba7ab875ee06d2ce2d079907145d (diff) | |
download | CMake-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.cxx | 8 |
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 } |