From 629e94893668c69fccb6954b0fc807c54e9218dd Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 5 Apr 2015 01:58:15 +0200 Subject: [PATCH] cmake: Clear member rather than explicit erase. --- Source/cmake.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 338144768..5c52a1a2d 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::iterator it; for ( it = commands.begin(); it != commands.end(); ++ it )