Mercurial > hg > svcore
comparison base/EventSeries.cpp @ 1633:6ac92836cd86 single-point
Further test & fixes
author | Chris Cannam |
---|---|
date | Tue, 12 Mar 2019 14:56:31 +0000 |
parents | 0890c10e5129 |
children | 05e3ea2237f5 |
comparison
equal
deleted
inserted
replaced
1632:0890c10e5129 | 1633:6ac92836cd86 |
---|---|
291 { | 291 { |
292 auto pitr = lower_bound(m_events.begin(), m_events.end(), e); | 292 auto pitr = lower_bound(m_events.begin(), m_events.end(), e); |
293 if (pitr == m_events.end() || *pitr != e) { | 293 if (pitr == m_events.end() || *pitr != e) { |
294 return false; | 294 return false; |
295 } | 295 } |
296 ++pitr; | 296 while (*pitr == e) { |
297 if (pitr == m_events.end()) { | 297 ++pitr; |
298 return false; | 298 if (pitr == m_events.end()) { |
299 return false; | |
300 } | |
299 } | 301 } |
300 following = *pitr; | 302 following = *pitr; |
301 return true; | 303 return true; |
302 } | 304 } |
303 | 305 |