From f0556c0b49c4229b8c690dbc39ff5deda44be1e5 Mon Sep 17 00:00:00 2001 From: Enrico Guiraud <enrico.guiraud@cern.ch> Date: Wed, 14 Nov 2018 22:31:01 +0100 Subject: [PATCH] [TTreeProcMT] Fix COV-98763: large variable passed by value --- tree/treeplayer/inc/ROOT/TTreeProcessorMT.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tree/treeplayer/inc/ROOT/TTreeProcessorMT.hxx b/tree/treeplayer/inc/ROOT/TTreeProcessorMT.hxx index ad78dc7c955..263f3c5bd9e 100644 --- a/tree/treeplayer/inc/ROOT/TTreeProcessorMT.hxx +++ b/tree/treeplayer/inc/ROOT/TTreeProcessorMT.hxx @@ -142,7 +142,7 @@ namespace ROOT { /// Get a TTreeReader for the current tree of this view. TreeReaderEntryListPair GetTreeReader(Long64_t start, Long64_t end, const std::string &treeName, const std::vector<std::string> &fileNames, const FriendInfo &friendInfo, - TEntryList entryList, const std::vector<Long64_t> &nEntries, + TEntryList &entryList, const std::vector<Long64_t> &nEntries, const std::vector<std::vector<Long64_t>> &friendEntries) { const bool usingLocalEntries = friendInfo.fFriendNames.empty() && entryList.GetN() == 0; @@ -168,7 +168,7 @@ namespace ROOT { const std::vector<std::string> fFileNames; ///< Names of the files const std::string fTreeName; ///< Name of the tree /// User-defined selection of entry numbers to be processed, empty if none was provided - const TEntryList fEntryList; + TEntryList fEntryList; const Internal::FriendInfo fFriendInfo; ROOT::TThreadedObject<ROOT::Internal::TTreeView> treeView; ///<! Thread-local TreeViews -- GitLab