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
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ void ControlThread::event_dispatcher(bool &valid_event, pmt::pmt_t &msg)
{
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
<< " what: " << 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_)
{
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
<< " what: " << new_event->event_type;