mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::fs: Use for_each rather than transform here.
This commit is contained in:
parent
eb17327f61
commit
f373417b0b
1 changed files with 4 additions and 4 deletions
|
@ -110,10 +110,10 @@ try
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<std::string> ret;
|
std::vector<std::string> ret;
|
||||||
std::transform(it, end, std::back_inserter(ret), []
|
std::for_each(it, end, [&ret]
|
||||||
(const auto &ent)
|
(const auto &ent)
|
||||||
{
|
{
|
||||||
return ent.path().string();
|
ret.emplace_back(ent.path().string());
|
||||||
});
|
});
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -134,10 +134,10 @@ try
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<std::string> ret;
|
std::vector<std::string> ret;
|
||||||
std::transform(it, end, std::back_inserter(ret), []
|
std::for_each(it, end, [&ret]
|
||||||
(const auto &ent)
|
(const auto &ent)
|
||||||
{
|
{
|
||||||
return ent.path().string();
|
ret.emplace_back(ent.path().string());
|
||||||
});
|
});
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue