Mercurial > minori
comparison dep/animia/src/strategist.cc @ 151:54744a48a7d7
last commit part 2: struct init with {} is valid syntax, actually
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 14 Nov 2023 16:31:21 -0500 |
parents | ffa535b6d630 |
children | 8700806c2cc2 |
comparison
equal
deleted
inserted
replaced
150:ffa535b6d630 | 151:54744a48a7d7 |
---|---|
52 const std::set<pid_t> pids{result_.process.pid}; | 52 const std::set<pid_t> pids{result_.process.pid}; |
53 std::vector<OpenFile> files; | 53 std::vector<OpenFile> files; |
54 | 54 |
55 fd.EnumerateOpenFiles(pids, files); | 55 fd.EnumerateOpenFiles(pids, files); |
56 | 56 |
57 for (const auto& file : files) { | 57 for (const auto& [pid, path] : files) { |
58 success |= AddMedia({MediaInfoType::File, file.path}); | 58 success |= AddMedia({MediaInfoType::File, path}); |
59 } | 59 } |
60 | 60 |
61 return success; | 61 return success; |
62 } | 62 } |
63 | 63 |