From ba4276f49e7dd207d0e06aa41d46546ce21740f0 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Sun, 27 Sep 2020 17:13:16 +0200 Subject: [PATCH] JetMonitoring: Fix clang warning. Unused lambda capture. --- Reconstruction/Jet/JetMonitoring/src/JetMonitoringAlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reconstruction/Jet/JetMonitoring/src/JetMonitoringAlg.cxx b/Reconstruction/Jet/JetMonitoring/src/JetMonitoringAlg.cxx index 7d4f2ef4ab7b..39b27484ecda 100644 --- a/Reconstruction/Jet/JetMonitoring/src/JetMonitoringAlg.cxx +++ b/Reconstruction/Jet/JetMonitoring/src/JetMonitoringAlg.cxx @@ -52,7 +52,7 @@ StatusCode JetMonitoringAlg::fillHistograms( const EventContext& ctx ) const { const xAOD::Jet *trigjet = dynamic_cast<const xAOD::Jet*>(*j); tmpList.push_back( trigjet ); } - auto sort = [this] (const xAOD::Jet * j1, const xAOD::Jet * j2) {return j1->p4().Et() > j2->p4().Et(); } ; + auto sort = [] (const xAOD::Jet * j1, const xAOD::Jet * j2) {return j1->p4().Et() > j2->p4().Et(); } ; tmpList.sort( sort ); ConstDataVector< xAOD::JetContainer > tmpCont(SG::VIEW_ELEMENTS); for(const xAOD::Jet* jet : tmpList ) tmpCont.push_back(jet); -- GitLab