diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 12:16:47 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-12 18:08:46 (GMT) |
commit | 7450a2c6ed601dc94f2de410661065554ff8ce12 (patch) | |
tree | 5007ea25854a1214c87ad994633fe57eb6c30a89 /Source/cmake.cxx | |
parent | 8c13d7709bb2a254e5927d3df1346d8264ba1bd5 (diff) | |
download | CMake-7450a2c6ed601dc94f2de410661065554ff8ce12.zip CMake-7450a2c6ed601dc94f2de410661065554ff8ce12.tar.gz CMake-7450a2c6ed601dc94f2de410661065554ff8ce12.tar.bz2 |
cmake: Remove method with no external users.
Port internal users to access the member.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 99c12d6..d2331cb 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -290,9 +290,9 @@ void cmake::AddCommand(cmCommand* wg) void cmake::RemoveUnscriptableCommands() { std::vector<std::string> unscriptableCommands; - cmake::RegisteredCommandsMap* commands = this->GetCommands(); - for (cmake::RegisteredCommandsMap::const_iterator pos = commands->begin(); - pos != commands->end(); + for (cmake::RegisteredCommandsMap::const_iterator + pos = this->Commands.begin(); + pos != this->Commands.end(); ++pos) { if (!pos->second->IsScriptable()) @@ -2323,8 +2323,8 @@ const char *cmake::GetProperty(const std::string& prop, else if ( prop == "COMMANDS" ) { cmake::RegisteredCommandsMap::iterator cmds - = this->GetCommands()->begin(); - for (unsigned int cc=0 ; cmds != this->GetCommands()->end(); ++ cmds ) + = this->Commands.begin(); + for (unsigned int cc=0 ; cmds != this->Commands.end(); ++ cmds ) { if ( cc > 0 ) { |