Skip to content

Commit

Permalink
[rdf] remove lambda from InterfaceUtils.hxx
Browse files Browse the repository at this point in the history
Gives no any advantage
  • Loading branch information
linev committed Sep 5, 2024
1 parent 846aebf commit 58a96e2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tree/dataframe/inc/ROOT/RDF/InterfaceUtils.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,10 @@ BuildAction(const ColumnNames_t &colNames, const std::shared_ptr<SnapshotHelperA
const auto &outputColNames = snapHelperArgs->fOutputColNames;
const auto &options = snapHelperArgs->fOptions;

auto makeIsDefine = [&] {
auto sz = sizeof...(ColTypes);
std::vector<bool> isDef(sz);
for (auto i = 0u; i < sz; ++i)
isDef[i] = colRegister.IsDefineOrAlias(colNames[i]);
return isDef;
};
std::vector<bool> isDefine = makeIsDefine();
auto sz = sizeof...(ColTypes);
std::vector<bool> isDefine(sz);
for (auto i = 0u; i < sz; ++i)
isDefine[i] = colRegister.IsDefineOrAlias(colNames[i]);

std::unique_ptr<RActionBase> actionPtr;
if (!ROOT::IsImplicitMTEnabled()) {
Expand Down

0 comments on commit 58a96e2

Please sign in to comment.