summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-27 11:03:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-27 11:03:52 +0300
commitf5d8bbfb549446c53671250364a60af02b9874e7 (patch)
treeff7afcdde21a111ff9e2df72db404e9b2146e39b /include
parenta3eedb2759dd0c88c9fabee28e2432f71dd2b440 (diff)
CLISTEVENT::szTooltip/pszService to be constant
Diffstat (limited to 'include')
-rw-r--r--include/m_clist.h6
-rw-r--r--include/m_clistint.h4
2 files changed, 5 insertions, 5 deletions
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;