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:
parent
65d257675f
commit
dd639e18b8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue