| 354 | |
| 355 | |
| 356 | inline ResultType WinGroup::Update(bool aIsModeActivate) |
| 357 | { |
| 358 | mIsModeActivate = aIsModeActivate; |
| 359 | if (sGroupLastUsed != this) |
| 360 | { |
| 361 | sGroupLastUsed = this; |
| 362 | sAlreadyVisitedCount = 0; // Since it's a new group, reset the array to start fresh. |
| 363 | } |
| 364 | if (!sAlreadyVisited) // Allocate the array on first use. |
| 365 | // Getting it from SimpleHeap reduces overhead for the avg. case (i.e. the first |
| 366 | // block of SimpleHeap is usually never fully used, and this array won't even |
| 367 | // be allocated for short scripts that don't even use window groups. |
| 368 | sAlreadyVisited = SimpleHeap::Alloc<HWND>(MAX_ALREADY_VISITED); |
| 369 | return OK; |
| 370 | } |
| 371 | |
| 372 | |
| 373 |
nothing calls this directly
no outgoing calls
no test coverage detected