diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-09 19:00:19 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-17 18:18:11 (GMT) |
commit | 62429a1e54ec443edda35074bc66805d6e602f89 (patch) | |
tree | 708adb78051477702b859d82e96934d4dfde1615 | |
parent | c697c1fafef16f00e4ec6a72d12eb3a43c01879a (diff) | |
download | CMake-62429a1e54ec443edda35074bc66805d6e602f89.zip CMake-62429a1e54ec443edda35074bc66805d6e602f89.tar.gz CMake-62429a1e54ec443edda35074bc66805d6e602f89.tar.bz2 |
cmGlobalGenerator: Remove unneeded pointer check.
Deleting nullptr is ok.
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 6d0fedc..227462d 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -74,11 +74,7 @@ cmGlobalGenerator::cmGlobalGenerator() cmGlobalGenerator::~cmGlobalGenerator() { this->ClearGeneratorMembers(); - - if (this->ExtraGenerator) - { - delete this->ExtraGenerator; - } + delete this->ExtraGenerator; } bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p, |