Mercurial > minori
diff dep/animia/src/fd/linux.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 |
line wrap: on
line diff
--- a/dep/animia/src/fd/linux.cc Tue Nov 14 16:27:33 2023 -0500 +++ b/dep/animia/src/fd/linux.cc Tue Nov 14 16:31:21 2023 -0500 @@ -137,11 +137,7 @@ if (!IsRegularFile(name)) continue; - OpenFile file; - file.pid = pid; - file.path = name; - - files.push_back(file); + files.push_back({pid, name}); } } return true;