Skip to content

Commit

Permalink
hotfix: Fix -Wpessimizing-move in TypeWithId.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yew1eb authored and zhouhai committed Apr 18, 2024
1 parent 8657ebf commit e23f701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/dwio/common/TypeWithId.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ std::unique_ptr<TypeWithId> TypeWithId::duplicate(bool nameAsLowerCase) const {
std::vector<std::unique_ptr<TypeWithId>> children;
children.reserve(children_.size());
for (const auto& child : children_) {
children.emplace_back(std::move(child->duplicate(nameAsLowerCase)));
children.emplace_back(child->duplicate(nameAsLowerCase));
}
return std::make_unique<TypeWithId>(
nameAsLowerCase ? adjustNameAsLowerCase(type_) : type_,
Expand Down

0 comments on commit e23f701

Please sign in to comment.