Commit 23368c9b authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmake: Use make_pair instead of Foo::value_type.

It works with all supported compilers.
parent 14c70b8c
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment