X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fanalog.cpp;h=eb25629fe68fa0f5f94d165ca6f5d7a0a66e222e;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hp=dd4097a8d2a7cea131e7d3eea6912a4caead690e;hpb=a007f5ad25bad88cf62443d5471449ce8a6f5f29;p=pulseview.git diff --git a/pv/data/analog.cpp b/pv/data/analog.cpp index dd4097a..eb25629 100644 --- a/pv/data/analog.cpp +++ b/pv/data/analog.cpp @@ -18,13 +18,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include #include "analog.h" #include "analogsnapshot.h" -using namespace boost; -using namespace std; +using std::deque; +using std::max; +using std::shared_ptr; namespace pv { namespace data { @@ -36,23 +37,23 @@ Analog::Analog() : void Analog::push_snapshot(shared_ptr &snapshot) { - _snapshots.push_front(snapshot); + snapshots_.push_front(snapshot); } deque< shared_ptr >& Analog::get_snapshots() { - return _snapshots; + return snapshots_; } void Analog::clear() { - _snapshots.clear(); + snapshots_.clear(); } uint64_t Analog::get_max_sample_count() const { uint64_t l = 0; - BOOST_FOREACH(const boost::shared_ptr s, _snapshots) { + for (const std::shared_ptr s : snapshots_) { assert(s); l = max(l, s->get_sample_count()); }