From: Joel Holdsworth Date: Sat, 28 Mar 2015 12:30:42 +0000 (+0000) Subject: pv::data::Logic: Renamed get_num_channels and fixed return types X-Git-Tag: pulseview-0.3.0~228 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9aa2602a054146d1be4fe833a6d7135d7f307a27;p=pulseview.git pv::data::Logic: Renamed get_num_channels and fixed return types --- diff --git a/pv/data/logic.cpp b/pv/data/logic.cpp index fe29aea4..3d7f2742 100644 --- a/pv/data/logic.cpp +++ b/pv/data/logic.cpp @@ -38,7 +38,7 @@ Logic::Logic(unsigned int num_channels) : assert(num_channels_ > 0); } -int Logic::get_num_channels() const +unsigned int Logic::num_channels() const { return num_channels_; } diff --git a/pv/data/logic.hpp b/pv/data/logic.hpp index baad18f7..990ad3ff 100644 --- a/pv/data/logic.hpp +++ b/pv/data/logic.hpp @@ -35,7 +35,7 @@ class Logic : public SignalData public: Logic(unsigned int num_channels); - int get_num_channels() const; + unsigned int num_channels() const; void push_segment( std::shared_ptr &segment);