summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 11:32:57 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 11:32:57 +0100
commit72f6740ebb93dc940c3894658824ba6142c15bfa (patch)
tree922e5a41dc16c1eb2db501d6eaca809fd2d15d9f
parent1e76247e059021ea52309ebd258b6eed033d6aee (diff)
parent95f556cf0797ab4c23f431e5c8c5accfa7f4c30b (diff)
downloaddabmod-72f6740ebb93dc940c3894658824ba6142c15bfa.tar.gz
dabmod-72f6740ebb93dc940c3894658824ba6142c15bfa.tar.bz2
dabmod-72f6740ebb93dc940c3894658824ba6142c15bfa.zip
Merge branch 'next' into outputRefactoring
-rw-r--r--src/DabModulator.cpp6
-rw-r--r--src/DabModulator.h1
-rw-r--r--src/FrequencyInterleaver.h10
-rw-r--r--src/GuardIntervalInserter.cpp2
-rw-r--r--src/RemoteControl.h6
-rw-r--r--src/TimestampDecoder.h2
6 files changed, 12 insertions, 15 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 337a595..5b77d18 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -243,7 +243,7 @@ int DabModulator::process(Buffer* dataOut)
////////////////////////////////////////////////////////////////
// Data initialisation
////////////////////////////////////////////////////////////////
- myFicSizeIn = fic->getFramesize();
+ size_t ficSizeIn = fic->getFramesize();
////////////////////////////////////////////////////////////////
// Modules configuration
@@ -255,10 +255,10 @@ int DabModulator::process(Buffer* dataOut)
PDEBUG(" Framesize: %zu\n", fic->getFramesize());
// Configuring prbs generator
- auto ficPrbs = make_shared<PrbsGenerator>(myFicSizeIn, 0x110);
+ auto ficPrbs = make_shared<PrbsGenerator>(ficSizeIn, 0x110);
// Configuring convolutionnal encoder
- auto ficConv = make_shared<ConvEncoder>(myFicSizeIn);
+ auto ficConv = make_shared<ConvEncoder>(ficSizeIn);
// Configuring puncturing encoder
auto ficPunc = make_shared<PuncturingEncoder>();
diff --git a/src/DabModulator.h b/src/DabModulator.h
index e806c92..e84ce96 100644
--- a/src/DabModulator.h
+++ b/src/DabModulator.h
@@ -75,7 +75,6 @@ protected:
size_t myNullSize;
size_t mySymSize;
size_t myFicSizeOut;
- size_t myFicSizeIn;
std::shared_ptr<OutputMemory> myOutput;
};
diff --git a/src/FrequencyInterleaver.h b/src/FrequencyInterleaver.h
index 7c0fb22..43ca21a 100644
--- a/src/FrequencyInterleaver.h
+++ b/src/FrequencyInterleaver.h
@@ -36,16 +36,14 @@ class FrequencyInterleaver : public ModCodec
public:
FrequencyInterleaver(size_t mode);
virtual ~FrequencyInterleaver();
- FrequencyInterleaver(const FrequencyInterleaver&);
- FrequencyInterleaver& operator=(const FrequencyInterleaver&);
+ FrequencyInterleaver(const FrequencyInterleaver&) = delete;
+ FrequencyInterleaver& operator=(const FrequencyInterleaver&) = delete;
-
- int process(Buffer* const dataIn, Buffer* dataOut);
- const char* name() { return "FrequencyInterleaver"; }
+ int process(Buffer* const dataIn, Buffer* dataOut) override;
+ const char* name() override { return "FrequencyInterleaver"; }
protected:
size_t d_carriers;
- size_t d_num;
size_t* d_indexes;
};
diff --git a/src/GuardIntervalInserter.cpp b/src/GuardIntervalInserter.cpp
index 14027d3..afb9213 100644
--- a/src/GuardIntervalInserter.cpp
+++ b/src/GuardIntervalInserter.cpp
@@ -201,7 +201,7 @@ int GuardIntervalInserter::process(Buffer* const dataIn, Buffer* dataOut)
memcpy( &out[ox], &in[ix],
remaining_prefix_length * sizeof(complexf));
ox += remaining_prefix_length;
- assert(ox = end_cyclic_prefix_ox);
+ assert(ox == end_cyclic_prefix_ox);
ix = 0;
const bool last_symbol = (sym_ix + 1 >= d_nbSymbols);
diff --git a/src/RemoteControl.h b/src/RemoteControl.h
index 013738b..11cd52c 100644
--- a/src/RemoteControl.h
+++ b/src/RemoteControl.h
@@ -94,7 +94,7 @@ class BaseRemoteController {
class RemoteControllable {
public:
RemoteControllable(const std::string& name) :
- m_name(name) {}
+ m_rc_name(name) {}
RemoteControllable(const RemoteControllable& other) = delete;
RemoteControllable& operator=(const RemoteControllable& other) = delete;
@@ -105,7 +105,7 @@ class RemoteControllable {
* It might be used in the commands the user has to type, so keep
* it short
*/
- virtual std::string get_rc_name() const { return m_name; }
+ virtual std::string get_rc_name() const { return m_rc_name; }
/* Return a list of possible parameters that can be set */
virtual std::list<std::string> get_supported_parameters() const;
@@ -126,7 +126,7 @@ class RemoteControllable {
virtual const std::string get_parameter(const std::string& parameter) const = 0;
protected:
- std::string m_name;
+ std::string m_rc_name;
std::list< std::vector<std::string> > m_parameters;
};
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h
index 000156d..cffba2f 100644
--- a/src/TimestampDecoder.h
+++ b/src/TimestampDecoder.h
@@ -49,7 +49,7 @@ struct frame_timestamp
frame_timestamp() = default;
frame_timestamp(const frame_timestamp& other) = default;
- frame_timestamp operator=(const frame_timestamp &rhs)
+ frame_timestamp& operator=(const frame_timestamp &rhs)
{
if (this != &rhs) {
this->timestamp_sec = rhs.timestamp_sec;