diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-04 23:58:15 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-05 08:26:10 (GMT) |
commit | 629e94893668c69fccb6954b0fc807c54e9218dd (patch) | |
tree | 37258c83252203c83eb5724bc2f7f8f40e6e6bfe | |
parent | d280bae98f009b56b9c14243981d5aba3e2f8747 (diff) | |
download | CMake-629e94893668c69fccb6954b0fc807c54e9218dd.zip CMake-629e94893668c69fccb6954b0fc807c54e9218dd.tar.gz CMake-629e94893668c69fccb6954b0fc807c54e9218dd.tar.bz2 |
cmake: Clear member rather than explicit erase.
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 3381447..5c52a1a 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -212,7 +212,7 @@ void cmake::CleanupCommandsAndMacros() delete j->second; } } - this->Commands.erase(this->Commands.begin(), this->Commands.end()); + this->Commands.clear(); std::vector<cmCommand*>::iterator it; for ( it = commands.begin(); it != commands.end(); ++ it ) |