diff options
author | Glen Whitney <glen@studioinfinity.org> | 2022-10-25 15:53:19 (GMT) |
---|---|---|
committer | Mathias Gumz <mgumz@users.noreply.github.com> | 2024-11-25 20:23:51 (GMT) |
commit | 823ca2e181df0c056875c4c901a37d86b60b4256 (patch) | |
tree | 30f54ee20b3a7b37cfd328f1abd9ff1e8d944bf0 /src/WorkspaceCmd.cc | |
parent | 06993a4ac8261f1ea6876d7593b14cf43103214b (diff) | |
download | fluxbox-823ca2e181df0c056875c4c901a37d86b60b4256.zip fluxbox-823ca2e181df0c056875c4c901a37d86b60b4256.tar.bz2 |
chore: remove compiler warnings
Most warnings were caused by deprecated std library templates,
especially std::mem_fun, std::bind1st, and std::bind2nd. These
are replaced by their modern versions, std::mem_fn and std::bind.
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index c2e4948..d05c37d 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -720,12 +720,12 @@ void CloseAllWindowsCmd::execute() { | |||
720 | for (; workspace_it != workspace_it_end; ++workspace_it) { | 720 | for (; workspace_it != workspace_it_end; ++workspace_it) { |
721 | windows = (*workspace_it)->windowList(); | 721 | windows = (*workspace_it)->windowList(); |
722 | std::for_each(windows.begin(), windows.end(), | 722 | std::for_each(windows.begin(), windows.end(), |
723 | std::mem_fun(&FluxboxWindow::close)); | 723 | std::mem_fn(&FluxboxWindow::close)); |
724 | } | 724 | } |
725 | 725 | ||
726 | windows = screen->iconList(); | 726 | windows = screen->iconList(); |
727 | std::for_each(windows.begin(), | 727 | std::for_each(windows.begin(), |
728 | windows.end(), std::mem_fun(&FluxboxWindow::close)); | 728 | windows.end(), std::mem_fn(&FluxboxWindow::close)); |
729 | 729 | ||
730 | } | 730 | } |
731 | 731 | ||