From f5d8bbfb549446c53671250364a60af02b9874e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Feb 2019 11:03:52 +0300 Subject: CLISTEVENT::szTooltip/pszService to be constant --- include/m_clist.h | 6 +++--- include/m_clistint.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/m_clist.h b/include/m_clist.h index dbe1a972d3..116ddfa931 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -249,11 +249,11 @@ struct CLISTEVENT HICON hIcon; // icon to flash union { MEVENT hDbEvent; // caller defined but should be unique for hContact - char *lpszProtocol; + const char *lpszProtocol; }; LPARAM lParam; // caller defined - char *pszService; // name of the service to call on activation - MAllStrings szTooltip; // short description of the event to display as a tooltip on the system tray + const char *pszService; // name of the service to call on activation + MAllCStrings szTooltip; // short description of the event to display as a tooltip on the system tray }; #define CLEF_URGENT 1 // flashes the icon even if the user is occupied, diff --git a/include/m_clistint.h b/include/m_clistint.h index f741e10384..91be4838a6 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -164,8 +164,8 @@ struct CListEvent : public CLISTEVENT, public MZeroedObject { ~CListEvent() { - mir_free(pszService); - mir_free(szTooltip.a); + mir_free((char*)pszService); + mir_free((char*)szTooltip.a); } int imlIconIndex; -- cgit v1.2.3