Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 404958f

Browse filesBrowse files
anonrigRafaelGSS
authored andcommitted
src: fix Coverity issue regarding unnecessary copy
PR-URL: #48565 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 504d1d7 commit 404958f
Copy full SHA for 404958f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/node_v8_platform-inl.h‎

Copy file name to clipboardExpand all lines: src/node_v8_platform-inl.h
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.