storage/Composite: use std::unique_ptr<Storage>

This commit is contained in:
Max Kellermann
2018-01-02 16:18:34 +01:00
parent 3c5e4e2788
commit dcd483bd99
5 changed files with 12 additions and 23 deletions

View File

@@ -205,7 +205,7 @@ handle_mount(Client &client, Request args, Response &r)
return CommandResult::ERROR;
}
composite.Mount(local_uri, storage.release());
composite.Mount(local_uri, std::move(storage));
instance.EmitIdle(IDLE_MOUNT);
#ifdef ENABLE_DATABASE