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 ruyadorno committed Sep 12, 2023
1 parent d1f4331 commit 0c38184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_v8_platform-inl.h
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 0c38184

Please sign in to comment.