Skip to content

Commit 4ff86ab

Browse files
committed
[ntuple] minor improvement in RPageSourceFile::CreateFromAnchor()
1 parent cc27fff commit 4ff86ab

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tree/ntuple/src/RPageStorageFile.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,8 @@ ROOT::Internal::RPageSourceFile::CreateFromAnchor(const RNTuple &anchor, const R
395395
// For local TFiles, TDavixFile, TCurlFile, and TNetXNGFile, we want to open a new RRawFile to take advantage of the
396396
// faster reading. We check the exact class name to avoid classes inheriting in ROOT (for example TMemFile) or in
397397
// experiment frameworks.
398-
std::string className = anchor.fFile->IsA()->GetName();
399-
auto url = anchor.fFile->GetEndpointUrl();
400-
auto protocol = std::string(url->GetProtocol());
398+
const std::string className = anchor.fFile->IsA()->GetName();
399+
const auto url = anchor.fFile->GetEndpointUrl();
401400
if (className == "TFile") {
402401
rawFile = ROOT::Internal::RRawFile::Create(url->GetFile());
403402
} else if (className == "TDavixFile" || className == "TCurlFile" || className == "TNetXNGFile") {

0 commit comments

Comments
 (0)