summaryrefslogtreecommitdiff
path: root/src/command/StorageCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-02 16:18:34 +0100
committerMax Kellermann <max@musicpd.org>2018-01-02 16:18:34 +0100
commitdcd483bd99446622c8fde6ad3e0df50ed40b4164 (patch)
tree86909c764f7ba4b093f9f042f39c2839ae31a7ce /src/command/StorageCommands.cxx
parent3c5e4e2788c7dcfa9d29c383c77396f9a3ffd4fa (diff)
storage/Composite: use std::unique_ptr<Storage>
Diffstat (limited to 'src/command/StorageCommands.cxx')
-rw-r--r--src/command/StorageCommands.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx
index bb06f821e..cb6920719 100644
--- a/src/command/StorageCommands.cxx
+++ b/src/command/StorageCommands.cxx
@@ -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