mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Merge pull request #5932 from edolstra/remove-shared-strings
Remove shared strings
This commit is contained in:
commit
3157028fc1
35 changed files with 145 additions and 141 deletions
|
@ -672,7 +672,7 @@ string drainFD(int fd, bool block, const size_t reserveSize)
|
|||
// not care very much about the extra memory.
|
||||
StringSink sink(reserveSize + 2);
|
||||
drainFD(fd, sink, block);
|
||||
return std::move(*sink.s);
|
||||
return std::move(sink.s);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1057,7 +1057,7 @@ std::pair<int, std::string> runProgram(RunOptions && options)
|
|||
status = e.status;
|
||||
}
|
||||
|
||||
return {status, std::move(*sink.s)};
|
||||
return {status, std::move(sink.s)};
|
||||
}
|
||||
|
||||
void runProgram2(const RunOptions & options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue