summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/EventList.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-22 13:55:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-22 13:55:39 +0000
commit1dad958015778d3486838bf3c93fff1793aa5406 (patch)
tree16ddb8957ac62d3ccb20cf070f0bdace203072d2 /plugins/BasicHistory/src/EventList.h
parentd1963a84cf69f801100367871744a4e1092d2bbc (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/EventList.h')
-rw-r--r--plugins/BasicHistory/src/EventList.h8
1 files changed, 4 insertions, 4 deletions
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;