Skip to content

Commit

Permalink
src: fix Coverity issue regarding unnecessary copy
Browse files Browse the repository at this point in the history
PR-URL: nodejs#48565
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
  • Loading branch information
anonrig authored and Ceres6 committed Aug 14, 2023
1 parent 69251f8 commit 89c4dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_v8_platform-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct V8Platform {
constexpr auto convert_to_set =
[](std::vector<std::string_view> categories) -> std::set<std::string> {
std::set<std::string> out;
for (const auto s : categories) {
for (const auto& s : categories) {
out.emplace(s);
}
return out;
Expand Down

0 comments on commit 89c4dcf

Please sign in to comment.