mirror of https://github.com/PentHertz/srsLTE.git
fix compilation issue
This commit is contained in:
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)
|
void pdcp::add_bearer(uint32_t lcid, pdcp_config_t cfg)
|
||||||
{
|
{
|
||||||
if (not valid_lcid(lcid)) {
|
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) {
|
.second) {
|
||||||
pdcp_log->error("Error inserting PDCP entity in to array\n.");
|
pdcp_log->error("Error inserting PDCP entity in to array\n.");
|
||||||
return;
|
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)
|
void pdcp::add_bearer_mrb(uint32_t lcid, pdcp_config_t cfg)
|
||||||
{
|
{
|
||||||
if (not valid_mch_lcid(lcid)) {
|
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) {
|
.second) {
|
||||||
pdcp_log->error("Error inserting PDCP entity in to array\n.");
|
pdcp_log->error("Error inserting PDCP entity in to array\n.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue