diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 10:32:00 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-12 18:08:48 (GMT) |
commit | 23368c9b83cd62724e94d345e3af940b3cda8762 (patch) | |
tree | fa10d4ef96a8e1662ad127ccf3277e2bbef15552 | |
parent | 14c70b8c580c519ca38bcd9ba5ca8fc9e7629068 (diff) | |
download | CMake-23368c9b83cd62724e94d345e3af940b3cda8762.zip CMake-23368c9b83cd62724e94d345e3af940b3cda8762.tar.gz CMake-23368c9b83cd62724e94d345e3af940b3cda8762.tar.bz2 |
cmake: Use make_pair instead of Foo::value_type.
It works with all supported compilers.
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 0cbb299..8e09485 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -257,7 +257,7 @@ void cmake::RenameCommand(const std::string& oldName, delete pos->second; this->Commands.erase(pos); } - this->Commands.insert(RegisteredCommandsMap::value_type(sNewName, cmd)); + this->Commands.insert(std::make_pair(sNewName, cmd)); pos = this->Commands.find(sOldName); this->Commands.erase(pos); } @@ -283,7 +283,7 @@ void cmake::AddCommand(cmCommand* wg) delete pos->second; this->Commands.erase(pos); } - this->Commands.insert( RegisteredCommandsMap::value_type(name, wg)); + this->Commands.insert(std::make_pair(name, wg)); } |