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:
Vincent Ambo 2020-05-19 22:02:23 +01:00
parent 3908732181
commit 88f337588c
12 changed files with 31 additions and 31 deletions

View file

@ -12,7 +12,7 @@ LocalFSStore::LocalFSStore(const Params& params) : Store(params) {}
struct LocalStoreAccessor : public FSAccessor {
ref<LocalFSStore> store;
LocalStoreAccessor(ref<LocalFSStore> store) : store(store) {}
explicit LocalStoreAccessor(ref<LocalFSStore> store) : store(store) {}
Path toRealPath(const Path& path) {
Path storePath = store->toStorePath(path);