remotecontrol: avoid possible compiler warnings with -Wignored-qualifiers

Leading const should be superfluous.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 515f61d4ab
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-23 (Thu, 23 Jan 2020)



------------------
This commit was generated by Migit
This commit is contained in:
2020-01-23 21:15:52 +01:00
committed by vanhofen
parent 054338b4ff
commit dcfa0d68e5

View File

@@ -303,7 +303,7 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data
#endif
char *p = new char[sizeof(t_channel_id)];
memcpy(p, &current_channel_id, sizeof(t_channel_id));
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTPIDS, (const neutrino_msg_data_t)p, false);
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTPIDS, (neutrino_msg_data_t)p, false);
processAPIDnames();
}
@@ -385,7 +385,7 @@ void CRemoteControl::getSubChannels()
char *p = new char[sizeof(t_channel_id)];
memcpy(p, &current_channel_id, sizeof(t_channel_id));
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory
}
}
}
@@ -427,7 +427,7 @@ void CRemoteControl::getNVODs()
char *p = new char[sizeof(t_channel_id)];
memcpy(p, &current_channel_id, sizeof(t_channel_id));
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory
if ( selected_subchannel == -1 )
{
@@ -611,7 +611,7 @@ void CRemoteControl::processAPIDnames()
char *p = new char[sizeof(t_channel_id)];
memcpy(p, &current_channel_id, sizeof(t_channel_id));
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTAPIDS, (const neutrino_msg_data_t)p, false); // data is pointer to allocated memory
g_RCInput->postMsg(NeutrinoMessages::EVT_ZAP_GOTAPIDS, (neutrino_msg_data_t)p, false); // data is pointer to allocated memory
}