diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-26 23:10:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-26 23:10:57 +0100 |
commit | 67c82c97dfcfc68d4bd71f5773d21c34c8733c83 (patch) | |
tree | fe3b9b22293bb5c19eef4b44d30c8cde9b32057b /src/DabModulator.cpp | |
parent | 91d3331d467c05d673f965b9f6eb8d33715df2b7 (diff) | |
download | dabmod-67c82c97dfcfc68d4bd71f5773d21c34c8733c83.tar.gz dabmod-67c82c97dfcfc68d4bd71f5773d21c34c8733c83.tar.bz2 dabmod-67c82c97dfcfc68d4bd71f5773d21c34c8733c83.zip |
Use ref instead of pointer for subchannel sources
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r-- | src/DabModulator.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<PrbsGenerator>(864 * 8, 0x110); auto cifMux = make_shared<FrameMultiplexer>( - myFicSizeOut + 864 * 8, &myEtiReader.getSubchannels()); + myFicSizeOut + 864 * 8, myEtiReader.getSubchannels()); auto cifPart = make_shared<BlockPartitioner>(mode, myEtiReader.getFp()); @@ -269,9 +269,7 @@ int DabModulator::process(Buffer* const dataIn, Buffer* dataOut) //////////////////////////////////////////////////////////////// // Configuring subchannels //////////////////////////////////////////////////////////////// - std::vector<shared_ptr<SubchannelSource> > subchannels = - myEtiReader.getSubchannels(); - for (const auto& subchannel : subchannels) { + for (const auto& subchannel : myEtiReader.getSubchannels()) { //////////////////////////////////////////////////////////// // Data initialisation |