about summary refs log tree commit diff
path: root/src/nix/hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/hash.cc')
-rw-r--r--src/nix/hash.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nix/hash.cc b/src/nix/hash.cc
index 452aa4ef67c0..5dd891e8add3 100644
--- a/src/nix/hash.cc
+++ b/src/nix/hash.cc
@@ -45,8 +45,8 @@ struct CmdHash : Command
     }
 };
 
-static RegisterCommand r1(make_ref<Command, CmdHash>(CmdHash::mFile));
-static RegisterCommand r2(make_ref<Command, CmdHash>(CmdHash::mPath));
+static RegisterCommand r1(make_ref<CmdHash>(CmdHash::mFile));
+static RegisterCommand r2(make_ref<CmdHash>(CmdHash::mPath));
 
 struct CmdToBase : Command
 {
@@ -82,8 +82,8 @@ struct CmdToBase : Command
     }
 };
 
-static RegisterCommand r3(make_ref<Command, CmdToBase>(false));
-static RegisterCommand r4(make_ref<Command, CmdToBase>(true));
+static RegisterCommand r3(make_ref<CmdToBase>(false));
+static RegisterCommand r4(make_ref<CmdToBase>(true));
 
 /* Legacy nix-hash command. */
 static int compatNixHash(int argc, char * * argv)