projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced BOOST_FOREACH with C++11 range-based for loops
[pulseview.git]
/
pv
/
data
/
analog.cpp
diff --git
a/pv/data/analog.cpp
b/pv/data/analog.cpp
index 21ddb5fb766cff41da6a5d4ad63e7e02f0b3bd93..c7430432613c3eadbf373e25b16374f0a1cb980f 100644
(file)
--- a/
pv/data/analog.cpp
+++ b/
pv/data/analog.cpp
@@
-18,8
+18,6
@@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <boost/foreach.hpp>
-
#include "analog.h"
#include "analogsnapshot.h"
#include "analog.h"
#include "analogsnapshot.h"
@@
-53,7
+51,7
@@
void Analog::clear()
uint64_t Analog::get_max_sample_count() const
{
uint64_t l = 0;
uint64_t Analog::get_max_sample_count() const
{
uint64_t l = 0;
-
BOOST_FOREACH(const boost::shared_ptr<AnalogSnapshot> s,
_snapshots) {
+
for (const boost::shared_ptr<AnalogSnapshot> s :
_snapshots) {
assert(s);
l = max(l, s->get_sample_count());
}
assert(s);
l = max(l, s->get_sample_count());
}