Clean up the code.

This commit is contained in:
Jonathan Naylor
2017-04-29 09:55:49 +01:00
parent 2fd934fd6a
commit a66db5d32a
5 changed files with 16 additions and 25 deletions

View File

@@ -22,25 +22,22 @@
#include "DMRFullLC.h"
#include <cstdio>
#include <cassert>
CRewrite::CRewrite() :
m_slot(0U),
m_tg(0U),
CRewrite::CRewrite(unsigned int slot, unsigned int tg) :
m_slot(slot),
m_tg(tg),
m_lc(NULL),
m_embeddedLC()
{
assert(slot == 1U || slot == 2U);
assert(tg < 16U);
}
CRewrite::~CRewrite()
{
}
void CRewrite::setParams(unsigned int slot, unsigned int tg)
{
m_slot = slot;
m_tg = tg;
}
void CRewrite::process(CDMRData& data)
{
data.setSlotNo(m_slot);