diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-06-13 00:58:35 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2021-06-17 00:08:24 +0200 |
commit | 72ba8b148d550dc012f98feb222b2a5371fbf89d (patch) | |
tree | edf67e8f334d30717a6e59f1e2fd0dce8707bb0c /gr-blocks/lib | |
parent | d8fd38901e14aca9829ea611102f50b3cd621c6c (diff) |
blocks: annotator_alltoall: include <sstream>, not cstring; reduce PMT overhead
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-blocks/lib')
-rw-r--r-- | gr-blocks/lib/annotator_alltoall_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/annotator_alltoall_impl.cc b/gr-blocks/lib/annotator_alltoall_impl.cc index 3791d129f8..2c64043cff 100644 --- a/gr-blocks/lib/annotator_alltoall_impl.cc +++ b/gr-blocks/lib/annotator_alltoall_impl.cc @@ -14,7 +14,7 @@ #include "annotator_alltoall_impl.h" #include <gnuradio/io_signature.h> -#include <cstring> +#include <sstream> namespace gr { namespace blocks { @@ -60,7 +60,7 @@ int annotator_alltoall_impl::work(int noutput_items, // Source ID and key for any tag that might get applied from this block pmt::pmt_t srcid = pmt::string_to_symbol(str.str()); - pmt::pmt_t key = pmt::string_to_symbol("seq"); + static pmt::pmt_t key = pmt::string_to_symbol("seq"); // Work does nothing to the data stream; just copy all inputs to // outputs Adds a new tag when the number of items read is a |