summaryrefslogtreecommitdiff
path: root/src/core/stdmsg
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-01-28 15:17:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-01-28 15:17:43 +0000
commit1042a84dd1f01c249a946ec708d3dae2881ecfab (patch)
tree57abc3b99b9bf4a6f4b55500be7aa738eb81cf3a /src/core/stdmsg
parent6c38539e9b3d5a72280950310253759085e96f01 (diff)
atavism removed: CLISTEVENT::cbSize
git-svn-id: http://svn.miranda-ng.org/main/trunk@16180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r--src/core/stdmsg/src/msgs.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp
index 3172bdb661..ebb815c423 100644
--- a/src/core/stdmsg/src/msgs.cpp
+++ b/src/core/stdmsg/src/msgs.cpp
@@ -88,14 +88,15 @@ static int MessageEventAdded(WPARAM hContact, LPARAM lParam)
return 0;
}
- CLISTEVENT cle = { sizeof(cle) };
+ TCHAR toolTip[256];
+ mir_sntprintf(toolTip, TranslateT("Message from %s"), pcli->pfnGetContactDisplayName(hContact, 0));
+
+ CLISTEVENT cle = {};
cle.hContact = hContact;
cle.hDbEvent = lParam;
cle.flags = CLEF_TCHAR;
cle.hIcon = Skin_LoadIcon(SKINICON_EVENT_MESSAGE);
cle.pszService = "SRMsg/ReadMessage";
- TCHAR toolTip[256];
- mir_sntprintf(toolTip, TranslateT("Message from %s"), pcli->pfnGetContactDisplayName(hContact, 0));
cle.ptszTooltip = toolTip;
pcli->pfnAddEvent(&cle);
return 0;
@@ -181,7 +182,6 @@ static int TypingMessage(WPARAM hContact, LPARAM lParam)
pcli->pfnRemoveEvent(hContact, 1);
CLISTEVENT cle = {};
- cle.cbSize = sizeof(cle);
cle.hContact = hContact;
cle.hDbEvent = 1;
cle.flags = CLEF_ONLYAFEW | CLEF_TCHAR;
@@ -274,7 +274,6 @@ static void RestoreUnreadMessageAlerts(void)
TCHAR toolTip[256];
CLISTEVENT cle = {};
- cle.cbSize = sizeof(cle);
cle.hIcon = Skin_LoadIcon(SKINICON_EVENT_MESSAGE);
cle.pszService = "SRMsg/ReadMessage";
cle.flags = CLEF_TCHAR;