fix compilation issue

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent 3773029d9e
commit 3fda3dc50a

@ -103,7 +103,9 @@ void pdcp::write_sdu_mch(uint32_t lcid, unique_byte_buffer_t sdu)
void pdcp::add_bearer(uint32_t lcid, pdcp_config_t cfg)
{
if (not valid_lcid(lcid)) {
if (not pdcp_array.insert(std::make_pair(lcid, new pdcp_entity_lte(rlc, rrc, gw, task_executor, pdcp_log)))
if (not pdcp_array
.insert(std::make_pair(
lcid, std::unique_ptr<pdcp_entity_lte>(new pdcp_entity_lte(rlc, rrc, gw, task_executor, pdcp_log))))
.second) {
pdcp_log->error("Error inserting PDCP entity in to array\n.");
return;
@ -126,7 +128,9 @@ void pdcp::add_bearer(uint32_t lcid, pdcp_config_t cfg)
void pdcp::add_bearer_mrb(uint32_t lcid, pdcp_config_t cfg)
{
if (not valid_mch_lcid(lcid)) {
if (not pdcp_array_mrb.insert(std::make_pair(lcid, new pdcp_entity_lte(rlc, rrc, gw, task_executor, pdcp_log)))
if (not pdcp_array_mrb
.insert(std::make_pair(
lcid, std::unique_ptr<pdcp_entity_lte>(new pdcp_entity_lte(rlc, rrc, gw, task_executor, pdcp_log))))
.second) {
pdcp_log->error("Error inserting PDCP entity in to array\n.");
return;

Loading…
Cancel
Save