summaryrefslogtreecommitdiffstats
path: root/src/CicEqualizer.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-31 21:43:35 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-31 21:43:35 +0100
commit15de0c12ca6393a8c8c849f25a4d016abef0056b (patch)
tree7135c630010aa93b5956ad3b656361801c813cde /src/CicEqualizer.cpp
parent6c9b79b912fed2bd3e40fcf620087468730cf4e3 (diff)
downloaddabmod-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.cpp8
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;
- }
}