Skip to content
Snippets Groups Projects

fix clang loop copy warning

Merged Gerhard Raven requested to merge fix-clang-warning into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -149,7 +149,7 @@ FunctionalBremAdder::bremLists( const LHCb::Particle& p1, const LHCb::Particle&
const auto brems2 = getBrem( p2, photons, geometry );
std::vector<const LHCb::CaloHypo*> bb2;
// check CaloHypo overlap
for ( auto b2 : brems2 ) {
for ( auto const& b2 : brems2 ) {
if ( std::find( brems1.begin(), brems1.end(), b2 ) == brems1.end() ) bb2.push_back( b2 );
}
m_nAddPairSharedPhotons += ( brems2.size() - bb2.size() );
Loading