1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Make clang-tidy happy

This commit is contained in:
Carles Fernandez 2020-08-09 14:14:04 +02:00
parent 5713d8b2ad
commit adcbacafb5
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -235,7 +235,7 @@ void ControlThread::event_dispatcher(bool &valid_event, pmt::pmt_t &msg)
{ {
if (receiver_on_standby_ == false) if (receiver_on_standby_ == false)
{ {
const channel_event_sptr new_event = boost::any_cast<channel_event_sptr>(pmt::any_ref(msg)); const auto new_event = boost::any_cast<channel_event_sptr>(pmt::any_ref(msg));
DLOG(INFO) << "New channel event rx from ch id: " << new_event->channel_id DLOG(INFO) << "New channel event rx from ch id: " << new_event->channel_id
<< " what: " << new_event->event_type; << " what: " << new_event->event_type;
flowgraph_->apply_action(new_event->channel_id, new_event->event_type); flowgraph_->apply_action(new_event->channel_id, new_event->event_type);
@ -243,7 +243,7 @@ void ControlThread::event_dispatcher(bool &valid_event, pmt::pmt_t &msg)
} }
else if (msg_type_hash_code == command_event_type_hash_code_) else if (msg_type_hash_code == command_event_type_hash_code_)
{ {
const command_event_sptr new_event = boost::any_cast<command_event_sptr>(pmt::any_ref(msg)); const auto new_event = boost::any_cast<command_event_sptr>(pmt::any_ref(msg));
DLOG(INFO) << "New command event rx from ch id: " << new_event->command_id DLOG(INFO) << "New command event rx from ch id: " << new_event->command_id
<< " what: " << new_event->event_type; << " what: " << new_event->event_type;