mirror of
https://github.com/NixOS/nix
synced 2025-06-28 09:31:16 +02:00
int2String() -> std::to_string()
This commit is contained in:
parent
71039becd1
commit
5c28943e8f
9 changed files with 17 additions and 24 deletions
|
@ -81,7 +81,7 @@ static PathSet realisePath(Path path, bool build = true)
|
|||
printGCWarning();
|
||||
else {
|
||||
Path rootName = gcRoot;
|
||||
if (rootNr > 1) rootName += "-" + int2String(rootNr);
|
||||
if (rootNr > 1) rootName += "-" + std::to_string(rootNr);
|
||||
if (i->first != "out") rootName += "-" + i->first;
|
||||
outPath = addPermRoot(*store, outPath, rootName, indirectRoot);
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ static PathSet realisePath(Path path, bool build = true)
|
|||
else {
|
||||
Path rootName = gcRoot;
|
||||
rootNr++;
|
||||
if (rootNr > 1) rootName += "-" + int2String(rootNr);
|
||||
if (rootNr > 1) rootName += "-" + std::to_string(rootNr);
|
||||
path = addPermRoot(*store, path, rootName, indirectRoot);
|
||||
}
|
||||
return singleton<PathSet>(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue