mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Remove the drain
argument from readFile
Now it is always `drain` (see previous commit).
This commit is contained in:
parent
5a34a473dd
commit
7afcb5af98
5 changed files with 9 additions and 6 deletions
|
@ -148,6 +148,9 @@ struct StringSink : Sink
|
|||
{
|
||||
ref<std::string> s;
|
||||
StringSink() : s(make_ref<std::string>()) { };
|
||||
explicit StringSink(const size_t reservedSize) : s(make_ref<std::string>()) {
|
||||
s->reserve(reservedSize);
|
||||
};
|
||||
StringSink(ref<std::string> s) : s(s) { };
|
||||
void operator () (const unsigned char * data, size_t len) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue