From d38d5cc437f82feca1a77e1c17cde62fe767babb Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 13 Jul 2007 04:25:42 +0000 Subject: changed classes api to use const pointers (removed unnecessary 'unconst' cast) git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@281 4f64403b-2f21-0410-a795-97e2b3489a10 --- message_notify/popups.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'message_notify/popups.cpp') diff --git a/message_notify/popups.cpp b/message_notify/popups.cpp index 8a652ba..24c983b 100644 --- a/message_notify/popups.cpp +++ b/message_notify/popups.cpp @@ -137,8 +137,8 @@ void ShowPopup( HANDLE hContact, const char* line1, const char* line2, int flags if(classes_enabled) { POPUPDATACLASS d = {sizeof(d), "messagenotify"}; - d.pszTitle = (char *)line1; - d.pszText = (char *)line2; + d.pszTitle = line1; + d.pszText = line2; d.PluginData = (void *)hContact; CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&d); } else { @@ -189,8 +189,8 @@ void ShowPopupW( HANDLE hContact, const wchar_t* line1, const wchar_t* line2, in if(classes_enabled) { POPUPDATACLASS d = {sizeof(d), "messagenotify"}; - d.pwszTitle = (wchar_t *)line1; - d.pwszText = (wchar_t *)line2; + d.pwszTitle = line1; + d.pwszText = line2; d.PluginData = (void *)hContact; CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&d); } else { -- cgit v1.2.3