Commit 646fef10 authored by Max Kellermann's avatar Max Kellermann

storage/composite: make variable non-const to enable the std::move()

parent d1cc7377
......@@ -117,7 +117,7 @@ CompositeStorage::Directory::Make(const char *uri)
{
Directory *directory = this;
while (*uri != 0) {
const std::string name = NextSegment(uri);
auto name = NextSegment(uri);
auto i = directory->children.emplace(std::move(name),
Directory());
directory = &i.first->second;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment