Skip to content

Commit d670175

Browse files
committed
Trivial WindowList optimization
1 parent 1f66ddf commit d670175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WindowList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ VOID timerProc(HWND, UINT, UINT_PTR, DWORD)
142142
}
143143

144144
// update the list
145-
windowList_ = newWindowList;
145+
windowList_.swap(newWindowList);
146146
}
147147

148148
BOOL enumWindowsProc(HWND hwnd, LPARAM lParam)

0 commit comments

Comments
 (0)