aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2011-11-02 17:33:38 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-01-04 06:53:54 (GMT)
commit5ae8bdf49db36b2691ce545e3285f9ee64f92148 (patch)
tree5ef8285a7f6c54a35544903c05018fd0445aee30 /src/Screen.cc
parentf859e78cb24cf69cc06e4395c58d804537f301c7 (diff)
downloadfluxbox_paul-5ae8bdf49db36b2691ce545e3285f9ee64f92148.zip
fluxbox_paul-5ae8bdf49db36b2691ce545e3285f9ee64f92148.tar.bz2
Pre-increment non-primitive types.
Found with cppcheck: "Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code."
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 309ee0d..4ea7afb 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1981,9 +1981,9 @@ void BScreen::clearHeads() {
1981 if (!hasXinerama()) return; 1981 if (!hasXinerama()) return;
1982 1982
1983 for (Workspaces::iterator i = m_workspaces_list.begin(); 1983 for (Workspaces::iterator i = m_workspaces_list.begin();
1984 i != m_workspaces_list.end(); i++) { 1984 i != m_workspaces_list.end(); ++i) {
1985 for (Workspace::Windows::iterator win = (*i)->windowList().begin(); 1985 for (Workspace::Windows::iterator win = (*i)->windowList().begin();
1986 win != (*i)->windowList().end(); win++) { 1986 win != (*i)->windowList().end(); ++win) {
1987 1987
1988 FluxboxWindow& w = *(*win); 1988 FluxboxWindow& w = *(*win);
1989 1989