1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

lsof: Replace copy with reference in a for loop

This commit is contained in:
Linus Groh 2021-05-31 18:03:54 +01:00
parent 304752fccb
commit 1f62aaa193

View file

@ -174,7 +174,7 @@ int main(int argc, char* argv[])
if (open_files.is_empty())
return 0;
for (auto file : open_files) {
for (auto& file : open_files) {
display_entry(file, *processes->find_if([&](auto& entry) { return entry.pid == arg_pid; }));
}
}