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: #48565
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
anonrig authored and RafaelGSS committed Jul 3, 2023
1 parent 504d1d7 commit 404958f
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 404958f

Please sign in to comment.