summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/globals.cpp
diff options
context:
space:
mode:
authorslotwin <slotwin@users.noreply.github.com>2014-05-16 14:09:55 +0000
committerslotwin <slotwin@users.noreply.github.com>2014-05-16 14:09:55 +0000
commitb0d7f419371c84e5ffcd391ac1e4fa779fef9262 (patch)
treee005b15dfe310caa6823dcdcec46cb80d57681ea /plugins/Scriver/src/globals.cpp
parente9faad51a554916947d2f98b570be38048d8501f (diff)
Scriver/options: move Line between messages color setting to Fonts and colors page
code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@9195 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/globals.cpp')
-rw-r--r--plugins/Scriver/src/globals.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp
index 29ecedf337..e717c8536e 100644
--- a/plugins/Scriver/src/globals.cpp
+++ b/plugins/Scriver/src/globals.cpp
@@ -392,7 +392,7 @@ void ReloadGlobals()
static int ackevent(WPARAM wParam, LPARAM lParam)
{
- ACKDATA *pAck = (ACKDATA*)lParam;
+ ACKDATA *pAck = (ACKDATA *)lParam;
if (!pAck)
return 0;
@@ -415,14 +415,15 @@ static int ackevent(WPARAM wParam, LPARAM lParam)
if (hwndSender != NULL) {
ErrorWindowData *ewd = (ErrorWindowData *)mir_alloc(sizeof(ErrorWindowData));
ewd->szName = GetNickname(item->hContact, item->proto);
- ewd->szDescription = mir_a2t((char*)pAck->lParam);
+ ewd->szDescription = mir_a2t((char *)pAck->lParam);
ewd->szText = GetSendBufferMsg(item);
ewd->hwndParent = hwndSender;
ewd->queueItem = item;
SendMessage(hwndSender, DM_STOPMESSAGESENDING, 0, 0);
SendMessage(hwndSender, DM_SHOWERRORMESSAGE, 0, (LPARAM)ewd);
}
- else RemoveSendQueueItem(item);
+ else
+ RemoveSendQueueItem(item);
}
return 0;
}
@@ -436,13 +437,13 @@ static int ackevent(WPARAM wParam, LPARAM lParam)
dbei.timestamp = time(NULL);
dbei.cbBlob = lstrlenA(item->sendBuffer) + 1;
if (!(item->flags & PREF_UTF))
- dbei.cbBlob *= sizeof(TCHAR)+1;
+ dbei.cbBlob *= sizeof(TCHAR) + 1;
dbei.pBlob = (PBYTE)item->sendBuffer;
MessageWindowEvent evt = { sizeof(evt), (int)item->hSendId, item->hContact, &dbei };
NotifyEventHooks(hHookWinWrite, 0, (LPARAM)&evt);
- item->sendBuffer = (char*)dbei.pBlob;
+ item->sendBuffer = (char *)dbei.pBlob;
db_event_add(item->hContact, &dbei);
if (item->hwndErrorDlg != NULL)