comparison dep/animia/src/strategist.cc @ 148:aa4df5a84338

dep/animia: use std::pair instead of std::tuple
author Paper <mrpapersonic@gmail.com>
date Tue, 14 Nov 2023 13:27:13 -0500
parents 1e696863b54c
children ffa535b6d630
comparison
equal deleted inserted replaced
147:6fdf0632c003 148:aa4df5a84338
48 48
49 bool Strategist::ApplyOpenFilesStrategy() { 49 bool Strategist::ApplyOpenFilesStrategy() {
50 bool success = false; 50 bool success = false;
51 51
52 const std::set<pid_t> pids{result_.process.pid}; 52 const std::set<pid_t> pids{result_.process.pid};
53 std::vector<std::tuple<pid_t, std::string>> files; 53 std::vector<std::pair<pid_t, std::string>> files;
54 54
55 fd.EnumerateOpenFiles(pids, files); 55 fd.EnumerateOpenFiles(pids, files);
56 56
57 for (const auto& [pid, file] : files) { 57 for (const auto& [pid, file] : files) {
58 success |= AddMedia({MediaInfoType::File, file}); 58 success |= AddMedia({MediaInfoType::File, file});