aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-04 12:41:39 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-04 12:41:39 (GMT)
commitb1b2f47e7dd185fef88a44a318a9b374083ecb40 (patch)
tree4180734552e2b2ff7cdf3ffa577eece48ff2ba4a /src
parent1e9dafdc67e1f67b5d360dcb0f7b276c38cbc46c (diff)
downloadfluxbox-b1b2f47e7dd185fef88a44a318a9b374083ecb40.zip
fluxbox-b1b2f47e7dd185fef88a44a318a9b374083ecb40.tar.bz2
minor code simplification
Diffstat (limited to 'src')
-rw-r--r--src/WorkspaceCmd.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index d72ef13..6267671 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -523,19 +523,19 @@ void CloseAllWindowsCmd::execute() {
523 BScreen *screen = Fluxbox::instance()->mouseScreen(); 523 BScreen *screen = Fluxbox::instance()->mouseScreen();
524 if (screen == 0) 524 if (screen == 0)
525 return; 525 return;
526 526
527 Workspace::Windows windows;
528
527 BScreen::Workspaces::iterator workspace_it = screen->getWorkspacesList().begin(); 529 BScreen::Workspaces::iterator workspace_it = screen->getWorkspacesList().begin();
528 BScreen::Workspaces::iterator workspace_it_end = screen->getWorkspacesList().end(); 530 BScreen::Workspaces::iterator workspace_it_end = screen->getWorkspacesList().end();
529 for (; workspace_it != workspace_it_end; ++workspace_it) { 531 for (; workspace_it != workspace_it_end; ++workspace_it) {
530 Workspace::Windows windows((*workspace_it)->windowList()); 532 windows = (*workspace_it)->windowList();
531 std::for_each(windows.begin(), 533 std::for_each(windows.begin(), windows.end(),
532 windows.end(), 534 std::mem_fun(&FluxboxWindow::close));
533 std::mem_fun(&FluxboxWindow::close)); 535 }
534 } 536
535 BScreen::Icons::iterator icon_it = screen->iconList().begin(); 537 windows = screen->iconList();
536 BScreen::Icons::iterator icon_it_end = screen->iconList().end(); 538 std::for_each(windows.begin(),
537 for (; icon_it != icon_it_end; ++icon_it ) { 539 windows.end(), std::mem_fun(&FluxboxWindow::close));
538 (*icon_it)->close(); 540
539 }
540
541} 541}