From 1ff48da3d3d4a425063f5b7dd0b89d35270f8932 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 30 Oct 2015 18:01:38 +0100 Subject: [PATCH] int2String -> std::to_string --- src/hydra-queue-runner/hydra-queue-runner.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 4f8da044..faf5a24e 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -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"); });