aboutsummaryrefslogtreecommitdiff
path: root/src/nix/ping-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/ping-store.cc')
-rw-r--r--src/nix/ping-store.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nix/ping-store.cc b/src/nix/ping-store.cc
index 310942574..3a2e542a3 100644
--- a/src/nix/ping-store.cc
+++ b/src/nix/ping-store.cc
@@ -6,11 +6,6 @@ using namespace nix;
struct CmdPingStore : StoreCommand
{
- std::string name() override
- {
- return "ping-store";
- }
-
std::string description() override
{
return "test whether a store can be opened";
@@ -32,4 +27,4 @@ struct CmdPingStore : StoreCommand
}
};
-static RegisterCommand r1(make_ref<CmdPingStore>());
+static auto r1 = registerCommand<CmdPingStore>("ping-store");