summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-22 22:45:08 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-22 22:45:08 (GMT)
commit9855ebf11a1556bd0b73a1eaec39232842871528 (patch)
treeb824bf5189ba5315fc0fc7a7f57709eda513afcf /Source/cmState.cxx
parent1e555a44aa4e3d40bca2f88915c9f957098e5a55 (diff)
downloadCMake-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.cxx3
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()) {