From c7cd8e2918509efe5fe74f35d442826cca2f5df3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 May 2024 17:34:26 +0300 Subject: code cleaning --- plugins/ExternalAPI/m_voiceservice.h | 2 +- plugins/Jingle/src/voip.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ExternalAPI/m_voiceservice.h b/plugins/ExternalAPI/m_voiceservice.h index a0fd124815..97d971cbb6 100644 --- a/plugins/ExternalAPI/m_voiceservice.h +++ b/plugins/ExternalAPI/m_voiceservice.h @@ -39,7 +39,7 @@ struct VOICE_MODULE { int cbSize; // sizeof(VOICE_MODULE) TCHAR *description; // The description of the voice provider. This is the name that will be shown to the user - char *name; // The internal name of the voice provider. All PS_* serivces + const char *name; // The internal name of the voice provider. All PS_* serivces // defined in m_voice.h need to be created based in this name. For example, // PS_VOICE_CALL (/Voice/Call) need to be created as /Voice/Call HANDLE icon; // Icon to identify provider (from icolib) diff --git a/plugins/Jingle/src/voip.cpp b/plugins/Jingle/src/voip.cpp index 1ec286cc57..8ca7eed036 100644 --- a/plugins/Jingle/src/voip.cpp +++ b/plugins/Jingle/src/voip.cpp @@ -514,7 +514,7 @@ void CJabberAccount::InitVoip(bool bEnable) VOICE_MODULE vsr = {}; vsr.cbSize = sizeof(VOICE_MODULE); vsr.description = L"XMPP/DTLS-SRTP"; - vsr.name = (char *)m_szModuleName; + vsr.name = m_szModuleName; vsr.icon = g_plugin.getIconHandle(IDI_MAIN); vsr.flags = VOICE_CAPS_VOICE | VOICE_CAPS_CALL_CONTACT; CallService(MS_VOICESERVICE_REGISTER, (WPARAM)&vsr, 0); -- cgit v1.2.3