Skip to content
Snippets Groups Projects
Commit 3d8c8bee authored by Enrico Guiraud's avatar Enrico Guiraud
Browse files

[DF] Prefer UncheckedAt since we are sure the element exists

parent e8364286
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ static void GetBranchNamesImpl(TTree &t, std::set<std::string> &bNamesReg, Colum
// Leaf list
auto listOfLeaves = branch->GetListOfLeaves();
if (listOfLeaves->GetEntries() == 1) {
auto leaf = static_cast<TLeaf *>(listOfLeaves->At(0));
auto leaf = static_cast<TLeaf *>(listOfLeaves->UncheckedAt(0));
const auto leafName = std::string(leaf->GetName());
if (leafName == branchName) {
UpdateList(bNamesReg, bNames, branchName, friendName, foundLeaves, leaf, allowDuplicates);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment