diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-22 22:45:08 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-22 22:45:08 (GMT) |
commit | 9855ebf11a1556bd0b73a1eaec39232842871528 (patch) | |
tree | b824bf5189ba5315fc0fc7a7f57709eda513afcf /Source/cmState.cxx | |
parent | 1e555a44aa4e3d40bca2f88915c9f957098e5a55 (diff) | |
download | CMake-9855ebf11a1556bd0b73a1eaec39232842871528.zip CMake-9855ebf11a1556bd0b73a1eaec39232842871528.tar.gz CMake-9855ebf11a1556bd0b73a1eaec39232842871528.tar.bz2 |
Make cmCommand not inherit from cmObject
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 0d1eb3e..468b191 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -446,8 +446,7 @@ void cmState::RemoveUserDefinedCommands() std::vector<cmCommand*> renamedCommands; for (std::map<std::string, cmCommand*>::iterator j = this->Commands.begin(); j != this->Commands.end();) { - if (j->second->IsA("cmMacroHelperCommand") || - j->second->IsA("cmFunctionHelperCommand")) { + if (j->second->IsUserDefined()) { delete j->second; this->Commands.erase(j++); } else if (j->first != j->second->GetName()) { |