Skip to content
Snippets Groups Projects
Commit e34b7405 authored by Maciej Pawel Szymanski's avatar Maciej Pawel Szymanski
Browse files

avoid redundant calls to GetLast()

parent 909bbd78
No related branches found
No related tags found
1 merge request!67972make ROOTTREE default storage for metadata instead of ROOTTREEINDEX
This commit is part of merge request !67972. Comments created here will be created in the context of that merge request.
......@@ -320,7 +320,7 @@ namespace xAOD {
const TObjArray * pBranches = tree->GetListOfBranches();
const std::regex pattern( ".*" + pre + ".*" );
for( int i = 0; i <= pBranches->GetLast() ; ++i ) {
for( int i = 0, nLast = pBranches->GetLast(); i <= nLast; ++i ) {
const std::string name = pBranches->At(i)->GetName();
if( std::regex_match( name, pattern ) )
......
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