From 67c82c97dfcfc68d4bd71f5773d21c34c8733c83 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 26 Dec 2016 23:10:57 +0100 Subject: Use ref instead of pointer for subchannel sources --- src/DabModulator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/DabModulator.cpp') diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp index f63ecd7..6c28a2e 100644 --- a/src/DabModulator.cpp +++ b/src/DabModulator.cpp @@ -157,7 +157,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) //////////////////////////////////////////////////////////////// auto cifPrbs = make_shared(864 * 8, 0x110); auto cifMux = make_shared( - myFicSizeOut + 864 * 8, &myEtiReader.getSubchannels()); + myFicSizeOut + 864 * 8, myEtiReader.getSubchannels()); auto cifPart = make_shared(mode, myEtiReader.getFp()); @@ -269,9 +269,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) //////////////////////////////////////////////////////////////// // Configuring subchannels //////////////////////////////////////////////////////////////// - std::vector > subchannels = - myEtiReader.getSubchannels(); - for (const auto& subchannel : subchannels) { + for (const auto& subchannel : myEtiReader.getSubchannels()) { //////////////////////////////////////////////////////////// // Data initialisation -- cgit v1.2.3