diff --git a/lib/include/srslte/upper/rlc_um_nr.h b/lib/include/srslte/upper/rlc_um_nr.h index 576514c58..83ad95191 100644 --- a/lib/include/srslte/upper/rlc_um_nr.h +++ b/lib/include/srslte/upper/rlc_um_nr.h @@ -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(); diff --git a/lib/src/upper/rlc_um_nr.cc b/lib/src/upper/rlc_um_nr.cc index 828def67a..45f7ae970 100644 --- a/lib/src/upper/rlc_um_nr.cc +++ b/lib/src/upper/rlc_um_nr.cc @@ -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_;