]> sigrok.org Git - pulseview.git/blobdiff - pv/data/logic.cpp
Random simplifications, cosmetics/whitespace/consistency fixes.
[pulseview.git] / pv / data / logic.cpp
index cd80ac99de13ca54384e9a7013239d68076f7823..ac47c29d6ac12d004f44c23ccc80b6678e44e78b 100644 (file)
@@ -42,8 +42,7 @@ unsigned int Logic::num_channels() const
        return num_channels_;
 }
 
-void Logic::push_segment(
-       shared_ptr<LogicSegment> &segment)
+void Logic::push_segment(shared_ptr<LogicSegment> &segment)
 {
        segments_.push_front(segment);
 }
@@ -55,8 +54,7 @@ const deque< shared_ptr<LogicSegment> >& Logic::logic_segments() const
 
 vector< shared_ptr<Segment> > Logic::segments() const
 {
-       return vector< shared_ptr<Segment> >(
-               segments_.begin(), segments_.end());
+       return vector< shared_ptr<Segment> >(segments_.begin(), segments_.end());
 }
 
 void Logic::clear()
@@ -69,7 +67,7 @@ void Logic::clear()
 uint64_t Logic::max_sample_count() const
 {
        uint64_t l = 0;
-       for (std::shared_ptr<LogicSegment> s : segments_) {
+       for (shared_ptr<LogicSegment> s : segments_) {
                assert(s);
                l = max(l, s->get_sample_count());
        }