clang-tidy: remove pointless std::move

Found with performance-move-const-arg

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-09-25 22:16:37 -07:00
parent 65d257675f
commit dd639e18b8
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -120,8 +120,7 @@ CompositeStorage::Directory::Make(std::string_view uri)
if (name.empty())
continue;
auto i = directory->children.emplace(std::move(name),
Directory());
auto i = directory->children.emplace(name, Directory());
directory = &i.first->second;
}