mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-27 13:22:41 -04:00
refactor: remove redundant string construction
This commit is contained in:
parent
70e64a1b40
commit
96242a3e4f
@ -775,8 +775,7 @@ int op_readdir_common(filesystem_v2& fs, Policy& policy, file_off_t off,
|
||||
auto res = fs.readdir(*dir, off);
|
||||
assert(res);
|
||||
|
||||
auto [entry, name_view] = *res;
|
||||
std::string name(name_view);
|
||||
auto [entry, name] = *res;
|
||||
|
||||
fs.getattr(entry, &stbuf);
|
||||
copy_file_stat(&st, stbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user