mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-28 05:44:06 -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);
|
auto res = fs.readdir(*dir, off);
|
||||||
assert(res);
|
assert(res);
|
||||||
|
|
||||||
auto [entry, name_view] = *res;
|
auto [entry, name] = *res;
|
||||||
std::string name(name_view);
|
|
||||||
|
|
||||||
fs.getattr(entry, &stbuf);
|
fs.getattr(entry, &stbuf);
|
||||||
copy_file_stat(&st, stbuf);
|
copy_file_stat(&st, stbuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user