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())
|
if (name.empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto i = directory->children.emplace(std::move(name),
|
auto i = directory->children.emplace(name, Directory());
|
||||||
Directory());
|
|
||||||
directory = &i.first->second;
|
directory = &i.first->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user