]> sigrok.org Git - pulseview.git/commitdiff
pv::data::Logic: Renamed get_num_channels and fixed return types
authorJoel Holdsworth <redacted>
Sat, 28 Mar 2015 12:30:42 +0000 (12:30 +0000)
committerJoel Holdsworth <redacted>
Thu, 28 May 2015 14:59:04 +0000 (15:59 +0100)
pv/data/logic.cpp
pv/data/logic.hpp

index fe29aea4f0175ba1f9878560ebb3ef4cad66eb8c..3d7f27422a024d54e7970837c87d56c8a8bf3e2d 100644 (file)
@@ -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_;
 }
index baad18f79bd82048c40f6a76872975ab6066ad3a..990ad3ff9b0c3cf70c640283c2a2a319bad84941 100644 (file)
@@ -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<LogicSegment> &segment);