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

This commit is contained in:
Max Kellermann 2020-02-20 16:41:38 +01:00
parent d1cc73775f
commit 646fef108a
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ CompositeStorage::Directory::Make(const char *uri)
{ {
Directory *directory = this; Directory *directory = this;
while (*uri != 0) { while (*uri != 0) {
const std::string name = NextSegment(uri); auto name = NextSegment(uri);
auto i = directory->children.emplace(std::move(name), auto i = directory->children.emplace(std::move(name),
Directory()); Directory());
directory = &i.first->second; directory = &i.first->second;