From 414a495d639ffb817dd3c04d771719e938f50daf Mon Sep 17 00:00:00 2001 From: Thomas Habets <thomas@habets.se> Date: Sun, 22 Mar 2020 16:30:12 +0000 Subject: blocks: Add const to member variables that don't change --- gr-blocks/lib/udp_source_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gr-blocks/lib/udp_source_impl.h') diff --git a/gr-blocks/lib/udp_source_impl.h b/gr-blocks/lib/udp_source_impl.h index d4d151b3df..36d4e2b199 100644 --- a/gr-blocks/lib/udp_source_impl.h +++ b/gr-blocks/lib/udp_source_impl.h @@ -22,9 +22,9 @@ namespace blocks { class udp_source_impl : public udp_source { private: - size_t d_itemsize; + const size_t d_itemsize; int d_payload_size; // maximum transmission unit (packet length) - bool d_eof; // look for an EOF signal + const bool d_eof; // look for an EOF signal bool d_connected; // are we connected? char* d_rxbuf; // get UDP buffer items char* d_residbuf; // hold buffer between calls -- cgit v1.2.3