auto
This commit is contained in:
parent
067e28b178
commit
3d49499b18
@ -55,7 +55,7 @@ char **CgiEnvironment::toEnvp() const
|
|||||||
{
|
{
|
||||||
char **envp = new char *[env_.size() + 1];
|
char **envp = new char *[env_.size() + 1];
|
||||||
size_t index = 0;
|
size_t index = 0;
|
||||||
for (std::map<std::string, std::string>::const_iterator it = env_.begin(); it != env_.end(); ++it, ++index)
|
for (auto it = env_.begin(); it != env_.end(); ++it, ++index)
|
||||||
{
|
{
|
||||||
std::string entry = it->first + "=" + it->second;
|
std::string entry = it->first + "=" + it->second;
|
||||||
envp[index] = new char[entry.size() + 1];
|
envp[index] = new char[entry.size() + 1];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user