From 22d42330716a38bfe2faef08eec2b2d3cab1886d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 May 2016 09:20:04 +0000 Subject: SortedList emulation expunged git-svn-id: http://svn.miranda-ng.org/main/trunk@16878 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/tokenregister.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Variables/src') 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; } -- cgit v1.2.3