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 5c2de8c commit a8ff8c4
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 a8ff8c4

Please sign in to comment.