diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-16 17:49:54 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-16 17:49:54 +0000 |
commit | 85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c (patch) | |
tree | fe07935255b7432938f282419c3ab1378524c02f /plugins/TipperYM/src | |
parent | 8a09c895c4cd0e9cc87c38181ae2913dba77c30b (diff) |
MEVENT - the strict type for events, they are not HANDLE anymore
git-svn-id: http://svn.miranda-ng.org/main/trunk@11866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src')
-rw-r--r-- | plugins/TipperYM/src/subst.cpp | 6 | ||||
-rw-r--r-- | plugins/TipperYM/src/tipper.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index 97559c11da..4bf6c42d4c 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -121,7 +121,7 @@ void StripBBCodesInPlace(TCHAR *swzText) DWORD LastMessageTimestamp(MCONTACT hContact, bool received) { - for (HANDLE hDbEvent = db_event_last(hContact); hDbEvent; hDbEvent = db_event_prev(hContact, hDbEvent)) { + for (MEVENT hDbEvent = db_event_last(hContact); hDbEvent; hDbEvent = db_event_prev(hContact, hDbEvent)) { DBEVENTINFO dbei = { sizeof(dbei) }; db_event_get(hDbEvent, &dbei); if (dbei.eventType == EVENTTYPE_MESSAGE && !(dbei.flags & DBEF_SENT) == received) @@ -168,7 +168,7 @@ bool UidName(char *szProto, TCHAR *buff, int bufflen) TCHAR *GetLastMessageText(MCONTACT hContact, bool received) { - for (HANDLE hDbEvent = db_event_last(hContact); hDbEvent; hDbEvent = db_event_prev(hContact, hDbEvent)) { + for (MEVENT hDbEvent = db_event_last(hContact); hDbEvent; hDbEvent = db_event_prev(hContact, hDbEvent)) { DBEVENTINFO dbei = { sizeof(dbei) }; db_event_get(hDbEvent, &dbei); if (dbei.eventType == EVENTTYPE_MESSAGE && !(dbei.flags & DBEF_SENT) == received) { @@ -383,7 +383,7 @@ bool GetSysSubstText(MCONTACT hContact, TCHAR *swzRawSpec, TCHAR *buff, int buff dwNewTs = dwLastTs; - HANDLE dbe = db_event_last(hTmpContact); + MEVENT dbe = db_event_last(hTmpContact); while (dbe != NULL) { DBEVENTINFO dbei = { sizeof(dbei) }; if (!db_event_get(dbe, &dbei)) { diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp index 9259bb827d..ca273e1f13 100644 --- a/plugins/TipperYM/src/tipper.cpp +++ b/plugins/TipperYM/src/tipper.cpp @@ -109,7 +109,7 @@ int SettingChanged(WPARAM hContact, LPARAM lParam) int EventDeleted(WPARAM wParam, LPARAM lParam)
{
DBEVENTINFO dbei = { sizeof(dbei) };
- if (!db_event_get((HANDLE)lParam, &dbei))
+ if (!db_event_get(lParam, &dbei))
if (dbei.eventType == EVENTTYPE_MESSAGE)
db_unset(wParam, MODULE, "LastCountTS");
|