diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-31 21:43:35 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-31 21:43:35 +0100 |
commit | 15de0c12ca6393a8c8c849f25a4d016abef0056b (patch) | |
tree | 7135c630010aa93b5956ad3b656361801c813cde /src/CicEqualizer.cpp | |
parent | 6c9b79b912fed2bd3e40fcf620087468730cf4e3 (diff) | |
download | dabmod-15de0c12ca6393a8c8c849f25a4d016abef0056b.tar.gz dabmod-15de0c12ca6393a8c8c849f25a4d016abef0056b.tar.bz2 dabmod-15de0c12ca6393a8c8c849f25a4d016abef0056b.zip |
CicEqualiser: replace float array by vector
Diffstat (limited to 'src/CicEqualizer.cpp')
-rw-r--r-- | src/CicEqualizer.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/CicEqualizer.cpp b/src/CicEqualizer.cpp index a9c0dd6..2b74672 100644 --- a/src/CicEqualizer.cpp +++ b/src/CicEqualizer.cpp @@ -30,12 +30,12 @@ CicEqualizer::CicEqualizer(size_t nbCarriers, size_t spacing, int R) : ModCodec(ModFormat(nbCarriers * sizeof(complexf)), ModFormat(nbCarriers * sizeof(complexf))), myNbCarriers(nbCarriers), - mySpacing(spacing) + mySpacing(spacing), + myFilter(nbCarriers) { PDEBUG("CicEqualizer::CicEqualizer(%zu, %zu, %i) @ %p\n", nbCarriers, spacing, R, this); - myFilter = new float[nbCarriers]; const int M = 1; const int N = 4; const float pi = 4.0f * atanf(1.0f); @@ -61,10 +61,6 @@ CicEqualizer::CicEqualizer(size_t nbCarriers, size_t spacing, int R) : CicEqualizer::~CicEqualizer() { PDEBUG("CicEqualizer::~CicEqualizer() @ %p\n", this); - - if (myFilter != NULL) { - delete[] myFilter; - } } |