refactor(3p/nix): Make all single-argument constructors explicit
Implicit constructors can be confusing, especially in a codebase that is already as unintentionally obfuscated as this one. https://google.github.io/styleguide/cppguide.html#Explicit_Constructors
This commit is contained in:
parent
3908732181
commit
88f337588c
12 changed files with 31 additions and 31 deletions
|
|
@ -9,7 +9,7 @@ namespace nix {
|
|||
struct HashAndWriteSink : Sink {
|
||||
Sink& writeSink;
|
||||
HashSink hashSink;
|
||||
HashAndWriteSink(Sink& writeSink)
|
||||
explicit HashAndWriteSink(Sink& writeSink)
|
||||
: writeSink(writeSink), hashSink(htSHA256) {}
|
||||
virtual void operator()(const unsigned char* data, size_t len) {
|
||||
writeSink(data, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue