From d5122c4e5a3f11bf64bf206abf4fda4ce466786a Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 22 Aug 2024 14:50:40 +0200 Subject: [PATCH] Simplify code --- src/algorithms/signal_source/gnuradio_blocks/ion_gsms.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/algorithms/signal_source/gnuradio_blocks/ion_gsms.cc b/src/algorithms/signal_source/gnuradio_blocks/ion_gsms.cc index 60a08ba6c..22a25868c 100644 --- a/src/algorithms/signal_source/gnuradio_blocks/ion_gsms.cc +++ b/src/algorithms/signal_source/gnuradio_blocks/ion_gsms.cc @@ -179,10 +179,8 @@ int IONGSMSFileSource::work( while (io_buffer_offset_ < bytes_to_read) { // Iterate chunks within a chunk cycle - for (auto& c : chunk_data_) + for (auto& chunk : chunk_data_) { - auto* chunk = c.get(); - // Copy chunk into a separate buffer where the samples will be shifted from. const std::size_t bytes_copied = chunk->read_from_buffer(reinterpret_cast(io_buffer_.data()), io_buffer_offset_);