diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-10-29 13:26:55 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-10-29 13:26:55 +0100 |
commit | 5c28943e8fd19d7eb55865d45d6dc61336aa04e9 (patch) | |
tree | 23027f6e306f2563558643cf5d584394d88429d4 /src/libstore/build.cc | |
parent | 71039becd11f5df4173692508dcb0ad36327c5fa (diff) |
int2String() -> std::to_string()
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 93bb21444..d6671f45b 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1732,7 +1732,7 @@ void DerivationGoal::startBuilder() if (passAsFile.find(i.first) == passAsFile.end()) { env[i.first] = i.second; } else { - Path p = tmpDir + "/.attr-" + int2String(fileNr++); + Path p = tmpDir + "/.attr-" + std::to_string(fileNr++); writeFile(p, i.second); filesToChown.insert(p); env[i.first + "Path"] = p; @@ -2142,7 +2142,7 @@ void DerivationGoal::startBuilder() CLONE_PARENT are not allowed together. */ child = clone(childEntry, stack + stackSize, flags & ~CLONE_NEWPID, this); if (child == -1) throw SysError("cloning builder process"); - writeFull(builderOut.writeSide, int2String(child) + "\n"); + writeFull(builderOut.writeSide, std::to_string(child) + "\n"); _exit(0); }, options); if (helper.wait(true) != 0) |