diff options
author | Thomas Habets <thomas@habets.se> | 2020-03-22 16:30:12 +0000 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-03-26 18:48:07 +0100 |
commit | 414a495d639ffb817dd3c04d771719e938f50daf (patch) | |
tree | 613c0e70bd0a1a5dce8d16dfdcbe8d0f77d4197f /gr-blocks/lib/throttle_impl.h | |
parent | c164d3427036bf57af9751380b731b7cd99a4f4a (diff) |
blocks: Add const to member variables that don't change
Diffstat (limited to 'gr-blocks/lib/throttle_impl.h')
-rw-r--r-- | gr-blocks/lib/throttle_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/throttle_impl.h b/gr-blocks/lib/throttle_impl.h index 3e0c58fe87..e01c3e7241 100644 --- a/gr-blocks/lib/throttle_impl.h +++ b/gr-blocks/lib/throttle_impl.h @@ -21,11 +21,11 @@ class throttle_impl : public throttle { private: std::chrono::time_point<std::chrono::steady_clock> d_start; - size_t d_itemsize; + const size_t d_itemsize; uint64_t d_total_samples; double d_sample_rate; std::chrono::duration<double> d_sample_period; - bool d_ignore_tags; + const bool d_ignore_tags; public: throttle_impl(size_t itemsize, double samples_per_sec, bool ignore_tags = true); |