remove unecessary moves

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent 12b2ea7dde
commit af9ca9f9e5

@ -135,6 +135,7 @@ public:
pdu_is_ul(false),
buffer_tx(nullptr)
{}
virtual ~pdu() = default;
void fprint(FILE* stream)
{

@ -248,8 +248,6 @@ private:
rrc* rrc_ptr;
srslte::timer_handler::unique_timer rlc_flush_timer;
bool wait = false;
};
class rrc::cell_reselection_proc

@ -41,6 +41,7 @@ class nas : public nas_interface_rrc, public nas_interface_ue, public srslte::ti
{
public:
explicit nas(srslte::task_handler_interface* task_handler_);
virtual ~nas() = default;
void init(usim_interface_nas* usim_, rrc_interface_nas* rrc_, gw_interface_nas* gw_, const nas_args_t& args_);
void stop();
void run_tti();
@ -285,8 +286,7 @@ private:
struct connection_request_completed_t {
bool outcome;
};
struct attach_timeout {
};
struct attach_timeout {};
explicit rrc_connect_proc(nas* nas_ptr_);
srslte::proc_outcome_t init(srslte::establishment_cause_t cause_, srslte::unique_byte_buffer_t pdu);

@ -139,7 +139,7 @@ int phy::init(const phy_args_t& args_)
mylog->init(tmp, logger, true);
mylog->set_level(args.log.phy_level);
mylog->set_hex_limit(args.log.phy_hex_limit);
log_vec.push_back(std::move(std::unique_ptr<srslte::log_filter>(mylog)));
log_vec.push_back(std::unique_ptr<srslte::log_filter>(mylog));
}
// Add PHY lib log
@ -150,7 +150,7 @@ int phy::init(const phy_args_t& args_)
lib_log->init(tmp, logger, true);
lib_log->set_level(args.log.phy_lib_level);
lib_log->set_hex_limit(args.log.phy_hex_limit);
log_vec.push_back(std::move(std::unique_ptr<srslte::log_filter>(lib_log)));
log_vec.push_back(std::unique_ptr<srslte::log_filter>(lib_log));
} else {
log_vec.push_back(nullptr);
}

Loading…
Cancel
Save