Skip to content

Commit e23f701

Browse files
committed
hotfix: Fix -Wpessimizing-move in TypeWithId.cpp
1 parent 8657ebf commit e23f701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velox/dwio/common/TypeWithId.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ std::unique_ptr<TypeWithId> TypeWithId::duplicate(bool nameAsLowerCase) const {
8686
std::vector<std::unique_ptr<TypeWithId>> children;
8787
children.reserve(children_.size());
8888
for (const auto& child : children_) {
89-
children.emplace_back(std::move(child->duplicate(nameAsLowerCase)));
89+
children.emplace_back(child->duplicate(nameAsLowerCase));
9090
}
9191
return std::make_unique<TypeWithId>(
9292
nameAsLowerCase ? adjustNameAsLowerCase(type_) : type_,

0 commit comments

Comments
 (0)