storage/composite: make variable non-const to enable the std::move()
This commit is contained in:
parent
d1cc73775f
commit
646fef108a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue