Skip to content

Commit 404958f

Browse files
anonrigRafaelGSS
authored andcommitted
src: fix Coverity issue regarding unnecessary copy
PR-URL: #48565 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent 504d1d7 commit 404958f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_v8_platform-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct V8Platform {
130130
constexpr auto convert_to_set =
131131
[](std::vector<std::string_view> categories) -> std::set<std::string> {
132132
std::set<std::string> out;
133-
for (const auto s : categories) {
133+
for (const auto& s : categories) {
134134
out.emplace(s);
135135
}
136136
return out;

0 commit comments

Comments
 (0)