1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-10 20:10:05 +00:00

Simplify code

This commit is contained in:
Carles Fernandez 2024-08-22 14:50:40 +02:00
parent d7885036b6
commit d5122c4e5a
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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<uint8_t*>(io_buffer_.data()), io_buffer_offset_);