mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 16:52:45 +03:00
chore(event): replace inlined TSList::DeleteNode
This commit is contained in:
parent
b10bb3bba6
commit
c3813f9d88
@ -21,10 +21,7 @@ void UpdateSyncKeyState(EvtContext* context, KEY key, EVENTID& id) {
|
||||
for (auto node = list->Head(); node;) {
|
||||
if (node->key == key) {
|
||||
keyDown = 1;
|
||||
auto dead = node;
|
||||
node = list->Next(node);
|
||||
list->UnlinkNode(dead);
|
||||
list->DeleteNode(dead);
|
||||
node = list->DeleteNode(node);
|
||||
} else {
|
||||
node = list->Next(node);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user