diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-20 18:39:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-20 18:39:25 +0000 |
commit | 5b48d799fc3ebbf8bb0e9010f12954db24c91a32 (patch) | |
tree | 4ea9203bec7bd101fe5a2c916fb19af1e679a940 /plugins/Scriver/src/globals.cpp | |
parent | d34993c5bc29deb66cac57406af93619d27ef241 (diff) |
minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4489 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/globals.cpp')
-rw-r--r-- | plugins/Scriver/src/globals.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index d9486bba85..493f55256c 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -441,18 +441,17 @@ static int ackevent(WPARAM wParam, LPARAM lParam) return 0;
}
- DBEVENTINFO dbei = { 0 };
- dbei.cbSize = sizeof(dbei);
+ DBEVENTINFO dbei = { sizeof(dbei) };
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.flags = DBEF_SENT | (( item->flags & PREF_RTL) ? DBEF_RTL : 0 );
- if ( item->flags & PREF_UTF )
+ dbei.flags = DBEF_SENT | ((item->flags & PREF_RTL) ? DBEF_RTL : 0);
+ if (item->flags & PREF_UTF)
dbei.flags |= DBEF_UTF;
dbei.szModule = GetContactProto(item->hContact);
dbei.timestamp = time(NULL);
dbei.cbBlob = lstrlenA(item->sendBuffer) + 1;
- if ( !( item->flags & PREF_UTF ))
+ if ( !( item->flags & PREF_UTF))
dbei.cbBlob *= sizeof(TCHAR) + 1;
- dbei.pBlob = (PBYTE) item->sendBuffer;
+ dbei.pBlob = (PBYTE)item->sendBuffer;
MessageWindowEvent evt = { sizeof(evt), (int)item->hSendId, item->hContact, &dbei };
NotifyEventHooks(hHookWinWrite, 0, (LPARAM)&evt);
|