summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/tokenregister.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-28 09:20:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-28 09:20:04 +0000
commit22d42330716a38bfe2faef08eec2b2d3cab1886d (patch)
tree520ebae4befdcba00e2262f061b1e3355f4938c3 /plugins/Variables/src/tokenregister.cpp
parentaa22627377b06fd781e1f3667ac48687dda03247 (diff)
SortedList emulation expunged
git-svn-id: http://svn.miranda-ng.org/main/trunk@16878 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/tokenregister.cpp')
-rw-r--r--plugins/Variables/src/tokenregister.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Variables/src/tokenregister.cpp b/plugins/Variables/src/tokenregister.cpp
index 2e6bc5fd80..7cf2fb0300 100644
--- a/plugins/Variables/src/tokenregister.cpp
+++ b/plugins/Variables/src/tokenregister.cpp
@@ -77,7 +77,7 @@ int deRegisterToken(TCHAR *token)
if (tre == NULL)
return -1;
- List_RemovePtr((SortedList*)&tokens, tre);
+ tokens.remove(tre);
}
if (!(tre->tr.flags & TRF_PARSEFUNC) && tre->tr.szService != NULL)
@@ -99,7 +99,6 @@ int deRegisterToken(TCHAR *token)
INT_PTR registerToken(WPARAM, LPARAM lParam)
{
DWORD hash;
- int idx;
TOKENREGISTEREX *newVr = (TOKENREGISTEREX*)lParam;
if (newVr == NULL || newVr->szTokenString == NULL || newVr->cbSize <= 0)
@@ -140,8 +139,7 @@ INT_PTR registerToken(WPARAM, LPARAM lParam)
tre->tr.szCleanupService = mir_strdup(newVr->szCleanupService);
mir_cslock lck(csRegister);
- List_GetIndex((SortedList*)&tokens, tre, &idx);
- List_Insert((SortedList*)&tokens, tre, idx);
+ tokens.insert(tre);
return 0;
}