* Close all windows of a given class * @param cls Window class of windows to delete */
| 1205 | * @param cls Window class of windows to delete |
| 1206 | */ |
| 1207 | void CloseWindowByClass(WindowClass cls, int data) |
| 1208 | { |
| 1209 | /* Note: the container remains stable, even when deleting windows. */ |
| 1210 | for (Window *w : Window::Iterate()) { |
| 1211 | if (w->window_class == cls) { |
| 1212 | w->Close(data); |
| 1213 | } |
| 1214 | } |
| 1215 | } |
| 1216 | |
| 1217 | /** |
| 1218 | * Close all windows of a company. We identify windows of a company |
no test coverage detected