diff options
author | George Hazan <george.hazan@gmail.com> | 2016-08-31 12:19:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-08-31 12:19:31 +0000 |
commit | ca942b88c295830544e03804666229e0e955f64b (patch) | |
tree | e19134219dae9befdf0b5cb1764873830058d5ad /plugins/BasicHistory/src/EventList.cpp | |
parent | 75a38acd5c2a1e0abd08d3458d36a452dfd0879a (diff) |
- memory leak fixed;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17226 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/EventList.cpp')
-rw-r--r-- | plugins/BasicHistory/src/EventList.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/BasicHistory/src/EventList.cpp b/plugins/BasicHistory/src/EventList.cpp index 932242a65d..bc459bfd95 100644 --- a/plugins/BasicHistory/src/EventList.cpp +++ b/plugins/BasicHistory/src/EventList.cpp @@ -79,15 +79,15 @@ bool HistoryEventList::CanShowHistory(DBEVENTINFO* dbei) return true;
if (m_defFilter < 1) {
- switch(dbei->eventType) {
+ switch (dbei->eventType) {
case EVENTTYPE_MESSAGE:
case EVENTTYPE_URL:
case EVENTTYPE_FILE:
return true;
default:
- DBEVENTTYPEDESCR *et = (DBEVENTTYPEDESCR*)CallService(MS_DB_EVENT_GETTYPE, ( WPARAM )dbei->szModule, ( LPARAM )dbei->eventType);
- if (et && ( et->flags & DETF_HISTORY))
+ DBEVENTTYPEDESCR *et = (DBEVENTTYPEDESCR*)CallService(MS_DB_EVENT_GETTYPE, (WPARAM)dbei->szModule, (LPARAM)dbei->eventType);
+ if (et && (et->flags & DETF_HISTORY))
return true;
}
@@ -123,7 +123,7 @@ bool HistoryEventList::CanShowHistory(const IImport::ExternalMessage &message) return true;
if (m_defFilter < 1) {
- switch(message.eventType ) {
+ switch (message.eventType) {
case EVENTTYPE_MESSAGE:
case EVENTTYPE_URL:
case EVENTTYPE_FILE:
@@ -220,7 +220,7 @@ void HistoryEventList::GetTempList(std::list<EventTempIndex>& tempList, bool noF for (int i = 0; i < (int)m_importedMessages.size(); ++i) {
if (noFilter || CanShowHistory(m_importedMessages[i])) {
DWORD ts = m_importedMessages[i].timestamp;
- while(itL != tempList.end() && itL->timestamp < ts)++itL;
+ while (itL != tempList.end() && itL->timestamp < ts)++itL;
if (itL == tempList.end() || itL->timestamp > ts) {
ti.exIdx = i;
ti.timestamp = ts;
|