1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

int2String -> std::to_string

This commit is contained in:
Eelco Dolstra 2015-10-30 18:01:38 +01:00
parent 19b52e907f
commit 1ff48da3d3

View file

@ -94,7 +94,7 @@ void State::monitorMachinesFile()
if (machinesFiles.empty()) {
parseMachines("localhost " + settings.thisSystem
+ " - " + int2String(settings.maxBuildJobs) + " 1");
+ " - " + std::to_string(settings.maxBuildJobs) + " 1");
return;
}
@ -433,9 +433,9 @@ void State::notificationSender()
printMsg(lvlChatty, format("sending notification about build %1%") % item.first);
Pid pid = startProcess([&]() {
Strings argv({"hydra-notify", "build", int2String(item.first)});
Strings argv({"hydra-notify", "build", std::to_string(item.first)});
for (auto id : item.second)
argv.push_back(int2String(id));
argv.push_back(std::to_string(id));
execvp("hydra-notify", (char * *) stringsToCharPtrs(argv).data()); // FIXME: remove cast
throw SysError("cannot start hydra-notify");
});