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:
parent
304752fccb
commit
1f62aaa193
1 changed files with 1 additions and 1 deletions
|
@ -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; }));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue