aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-07 13:54:42 (GMT)
committerfluxgen <fluxgen>2002-05-07 13:54:42 (GMT)
commit9caf24483d1ee8ea0a7a83ab65a2950af01c6765 (patch)
tree2f4e54520d2fc0ba63f8bb4f305942b8f79f63b2
parentc8eeaea88ff11a30110de18a1ec32a31942bbd38 (diff)
downloadfluxbox_paul-9caf24483d1ee8ea0a7a83ab65a2950af01c6765.zip
fluxbox_paul-9caf24483d1ee8ea0a7a83ab65a2950af01c6765.tar.bz2
const iterators in updateGnomeList
-rw-r--r--src/Screen.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index abb4a94..6bbe39f 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.47 2002/04/28 19:54:10 fluxgen Exp $ 25// $Id: Screen.cc,v 1.48 2002/05/07 13:54:42 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -1759,13 +1759,14 @@ void BScreen::updateGnomeClientList() {
1759 //int num = getCurrentWorkspace()->getWindowList().size(); 1759 //int num = getCurrentWorkspace()->getWindowList().size();
1760 1760
1761 Window *wl = new Window[num]; 1761 Window *wl = new Window[num];
1762 //start the iterator from begining
1762 workspace_it = workspacesList.begin(); 1763 workspace_it = workspacesList.begin();
1763 int win=0; 1764 int win=0;
1764 for (; workspace_it != workspace_it_end; ++workspace_it) { 1765 for (; workspace_it != workspace_it_end; ++workspace_it) {
1765 1766
1766 // Fill in array of window ID's 1767 // Fill in array of window ID's
1767 Workspace::Windows::iterator it = (*workspace_it)->getWindowList().begin(); 1768 Workspace::Windows::const_iterator it = (*workspace_it)->getWindowList().begin();
1768 Workspace::Windows::iterator it_end = (*workspace_it)->getWindowList().end(); 1769 Workspace::Windows::const_iterator it_end = (*workspace_it)->getWindowList().end();
1769 for (; it != it_end; ++it) { 1770 for (; it != it_end; ++it) {
1770 //check if the window don't want to be visible in the list 1771 //check if the window don't want to be visible in the list
1771 if (! ( (*it)->getGnomeHints() & FluxboxWindow::WIN_STATE_HIDDEN) ) { 1772 if (! ( (*it)->getGnomeHints() & FluxboxWindow::WIN_STATE_HIDDEN) ) {