0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::fs: Use for_each rather than transform here.

This commit is contained in:
Jason Volk 2019-02-28 17:53:01 -08:00
parent eb17327f61
commit f373417b0b

View file

@ -110,10 +110,10 @@ try
};
std::vector<std::string> ret;
std::transform(it, end, std::back_inserter(ret), []
std::for_each(it, end, [&ret]
(const auto &ent)
{
return ent.path().string();
ret.emplace_back(ent.path().string());
});
return ret;
@ -134,10 +134,10 @@ try
};
std::vector<std::string> ret;
std::transform(it, end, std::back_inserter(ret), []
std::for_each(it, end, [&ret]
(const auto &ent)
{
return ent.path().string();
ret.emplace_back(ent.path().string());
});
return ret;