diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-12-02 14:00:43 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-12-02 14:17:27 +0100 |
commit | faa31f40846f7a4dbc2487d000b112a6aef69d1b (patch) | |
tree | 37f34b2378c81d9f2bb8fc79046d12b4e0592647 /src/libstore/daemon.cc | |
parent | aa684861127eabc18a0d7386a66c5b75d4962897 (diff) |
Sink: Use std::string_view
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r-- | src/libstore/daemon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index 60cca4fda..cb214bee3 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -153,10 +153,10 @@ struct TunnelSink : Sink { Sink & to; TunnelSink(Sink & to) : to(to) { } - virtual void operator () (const unsigned char * data, size_t len) + void operator () (std::string_view data) { to << STDERR_WRITE; - writeString(data, len, to); + writeString(data, to); } }; |