From 6c75cf69c34af676b6b39ff69fcb439e7a4bda6e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 May 2016 16:04:52 +0200 Subject: Cleanup: Remove singleton() --- src/nix-daemon/nix-daemon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nix-daemon') diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index bc05b85f4923..9757086c650e 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -195,7 +195,7 @@ static void performOp(ref store, bool trusted, unsigned int clientVe case wopHasSubstitutes: { Path path = readStorePath(from); startWork(); - PathSet res = store->querySubstitutablePaths(singleton(path)); + PathSet res = store->querySubstitutablePaths({path}); stopWork(); to << (res.find(path) != res.end()); break; @@ -472,7 +472,7 @@ static void performOp(ref store, bool trusted, unsigned int clientVe Path path = absPath(readString(from)); startWork(); SubstitutablePathInfos infos; - store->querySubstitutablePathInfos(singleton(path), infos); + store->querySubstitutablePathInfos({path}, infos); stopWork(); SubstitutablePathInfos::iterator i = infos.find(path); if (i == infos.end()) -- cgit 1.4.1