summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify/xstatus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-06 20:38:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-06 20:38:53 +0000
commit83246d23d9e1c1feeaee267b9a1b68c4766e7114 (patch)
treec9160f63edd2f7dc85b61a0e1a987da5ce34f0d8 /plugins/NewXstatusNotify/xstatus.cpp
parent01b90c2d693230916ebc4d868f5868c6e32b58a0 (diff)
array fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@340 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/xstatus.cpp')
-rw-r--r--plugins/NewXstatusNotify/xstatus.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NewXstatusNotify/xstatus.cpp b/plugins/NewXstatusNotify/xstatus.cpp
index ed875c7fe0..4692dd5682 100644
--- a/plugins/NewXstatusNotify/xstatus.cpp
+++ b/plugins/NewXstatusNotify/xstatus.cpp
@@ -23,7 +23,7 @@
#include "utils.h"
#include "xstatus.h"
-extern SortedList *eventList;
+extern LIST<DBEVENT> eventList;
extern OPTIONS opt;
extern TEMPLATES templates;
@@ -52,13 +52,13 @@ void FreeXSC(XSTATUSCHANGE *xsc)
void RemoveLoggedEvents(HANDLE hContact)
{
- for (int i = eventList->realCount-1; i >= 0; i--)
+ for (int i = eventList.getCount()-1; i >= 0; i--)
{
- DBEVENT *dbevent = (DBEVENT *)eventList->items[i];
+ DBEVENT *dbevent = eventList[i];
if (dbevent->hContact == hContact)
{
CallService(MS_DB_EVENT_DELETE, (WPARAM)dbevent->hContact, (LPARAM)dbevent->hDBEvent);
- li.List_Remove(eventList, i);
+ eventList.remove(i);
mir_free(dbevent);
}
}
@@ -312,7 +312,7 @@ void LogToMessageWindow(XSTATUSCHANGE *xsc, BOOL opening)
DBEVENT *dbevent = (DBEVENT *)mir_alloc(sizeof(DBEVENT));
dbevent->hContact = xsc->hContact;
dbevent->hDBEvent = hDBEvent;
- li.List_Insert(eventList, dbevent, eventList->realCount);
+ eventList.insert(dbevent);
}
}
}