mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
chore(event): replace inlined TSList::Clear
This commit is contained in:
parent
05e327e54f
commit
b10bb3bba6
@ -47,14 +47,7 @@ void ResetSyncState(EvtContext* context) {
|
||||
|
||||
context->m_critsect.Enter();
|
||||
|
||||
EvtKeyDown* node;
|
||||
|
||||
auto list = &context->m_queueSyncKeyDownList;
|
||||
|
||||
while (node = list->Head()) {
|
||||
list->UnlinkNode(node);
|
||||
list->DeleteNode(node);
|
||||
}
|
||||
context->m_queueSyncKeyDownList.Clear();
|
||||
|
||||
context->m_critsect.Leave();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user