]> sigrok.org Git - pulseview.git/commitdiff
Make Snapshot::get_sample_count() a const function
authorJoel Holdsworth <redacted>
Sat, 16 Mar 2013 15:54:47 +0000 (15:54 +0000)
committerJoel Holdsworth <redacted>
Thu, 21 Mar 2013 22:44:19 +0000 (22:44 +0000)
pv/data/snapshot.cpp
pv/data/snapshot.h

index f3855e06c34ce9bf7cf829b5b27085f70bcb82e7..afd1e43e7c7b3169e792adb4336db4b171fcfd8c 100644 (file)
@@ -44,7 +44,7 @@ Snapshot::~Snapshot()
        free(_data);
 }
 
-uint64_t Snapshot::get_sample_count()
+uint64_t Snapshot::get_sample_count() const
 {
        lock_guard<recursive_mutex> lock(_mutex);
        return _sample_count;
index e99a7a3c8b449e154b3e91740b96b70395096daa..5fb79198eb2b6efe64f0e3cd1f0995d4d8ca14cf 100644 (file)
@@ -35,7 +35,7 @@ public:
 
        virtual ~Snapshot();
 
-       uint64_t get_sample_count();
+       uint64_t get_sample_count() const;
 
 protected:
        void append_data(void *data, uint64_t samples);