Skip to content
Snippets Groups Projects
Commit 23be978c authored by Gerhard Raven's avatar Gerhard Raven
Browse files

avoid comparing SmartRef to 0, use nullptr instead

parent e910d163
No related branches found
No related tags found
1 merge request!4452ProtoParticle: avoid comparing SmartRef to 0, use nullptr instead
Pipeline #6927204 passed
......@@ -71,7 +71,7 @@ LHCb::ProtoParticle::ExtraInfo::size_type LHCb::ProtoParticle::clearCalo( const
LHCb::ProtoParticle::ExtraInfo::size_type removed = 0;
// remove NULL hypos
const auto it = std::remove( m_calo.begin(), m_calo.end(), 0 );
const auto it = std::remove( m_calo.begin(), m_calo.end(), nullptr );
if ( m_calo.end() != it ) {
removed += m_calo.end() - it;
m_calo.erase( it, m_calo.end() );
......
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