From fa80a60de9fd9bfef404be11f04d6edef93c530e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 23 Jan 2020 17:13:59 +0100 Subject: [PATCH] remotecontrol: avoid possible compiler warnings with -Wignored-qualifiers Leading const should be superfluous. --- src/daemonc/remotecontrol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index 7201ad01e..9c51e7c01 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -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, ¤t_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, ¤t_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, ¤t_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, ¤t_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 }