Fix compilation for NR HL

This commit is contained in:
Xavier Arteaga 2020-04-15 11:45:29 +02:00 committed by Andre Puschmann
parent 77d5dedddc
commit 01e224348c
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public:
srsue::rrc_interface_rlc* rrc_,
srslte::timer_handler* timers_);
~rlc_um_nr();
bool configure(rlc_config_t cnfg);
bool configure(const rlc_config_t& cnfg);
private:
// Transmitter sub-class for NR
@ -58,7 +58,7 @@ private:
public:
rlc_um_nr_tx(rlc_um_base* parent_);
bool configure(rlc_config_t cfg, std::string rb_name);
bool configure(const rlc_config_t& cfg, std::string rb_name);
int build_data_pdu(unique_byte_buffer_t pdu, uint8_t* payload, uint32_t nof_bytes);
uint32_t get_buffer_state();

View File

@ -40,7 +40,7 @@ rlc_um_nr::~rlc_um_nr()
stop();
}
bool rlc_um_nr::configure(rlc_config_t cnfg_)
bool rlc_um_nr::configure(const rlc_config_t& cnfg_)
{
// determine bearer name and configure Rx/Tx objects
rb_name = get_rb_name(rrc, lcid, cnfg_.um.is_mrb);
@ -99,7 +99,7 @@ uint32_t rlc_um_nr::rlc_um_nr_tx::get_buffer_state()
return n_bytes;
}
bool rlc_um_nr::rlc_um_nr_tx::configure(rlc_config_t cnfg_, std::string rb_name_)
bool rlc_um_nr::rlc_um_nr_tx::configure(const rlc_config_t& cnfg_, std::string rb_name_)
{
cfg = cnfg_;