From 1dad958015778d3486838bf3c93fff1793aa5406 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Sep 2013 13:55:39 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@6182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/EventList.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/BasicHistory/src/EventList.h') diff --git a/plugins/BasicHistory/src/EventList.h b/plugins/BasicHistory/src/EventList.h index cfb76e4779..a32ff92b9c 100644 --- a/plugins/BasicHistory/src/EventList.h +++ b/plugins/BasicHistory/src/EventList.h @@ -95,7 +95,7 @@ protected: bool GetEventIcon(bool isMe, int eventType, int &id); void DeleteEvent(const EventIndex& ev) { - if(!ev.isExternal) + if (!ev.isExternal) db_event_delete(hContact, ev.hEvent); } @@ -134,19 +134,19 @@ public: HICON GetEventCoreIcon(const EventIndex& ev); void GetEventMessage(const EventIndex& ev, TCHAR* message) // must be allocated with MAXSELECTSTR len { - if(!ev.isExternal) + if (!ev.isExternal) GetObjectDescription(&gdbei, message, MAXSELECTSTR); else _tcscpy_s(message, MAXSELECTSTR, importedMessages[ev.exIdx].message.c_str()); } void GetEventMessage(const EventIndex& ev, TCHAR* message, int strLen) { - if(!ev.isExternal) + if (!ev.isExternal) GetObjectDescription(&gdbei, message, strLen); else { std::wstring& meg = importedMessages[ev.exIdx].message; - if((int)meg.size() >= strLen) + if ((int)meg.size() >= strLen) { memcpy_s(message, strLen * sizeof(TCHAR), meg.c_str(), (strLen - 1) * sizeof(TCHAR)); message[strLen - 1] = 0; -- cgit v1.2.3