From a092d3fc1b351a4c6ea1d95757b5244bf86b8a39 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 24 Oct 2007 19:38:27 +0000 Subject: fixed gcc 2.96 compile problem --- ChangeLog | 2 ++ src/Layer.hh | 2 ++ src/MinOverlapPlacement.cc | 2 +- src/Workspace.cc | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d38cf12..85cfb57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0.1: *07/10/24: + * Fixed some gcc 2.96 compile issues ( Henrik ) + Layer.hh, MinOverlapPlacement.cc, Workspace.cc * Introduced (workspacename=...) for pattern matching and changed (workspace=...) to use the workspace number, indexed from 0 (Mark) ClientPattern.cc/hh diff --git a/src/Layer.hh b/src/Layer.hh index e86c090..aa99506 100644 --- a/src/Layer.hh +++ b/src/Layer.hh @@ -23,6 +23,8 @@ #define LAYER_HH #include +#include + using std::string; /** diff --git a/src/MinOverlapPlacement.cc b/src/MinOverlapPlacement.cc index 510f66e..ce7ff3c 100644 --- a/src/MinOverlapPlacement.cc +++ b/src/MinOverlapPlacement.cc @@ -155,7 +155,7 @@ bool MinOverlapPlacement::placeWindow(const FluxboxWindow &win, int head, int overlap = 0; it = windowlist.rbegin(); - for (; it != windowlist.rend(); ++it) { + for (; it != it_end; ++it) { // get the dimensions of the window int left = (*it)->x() - (*it)->xOffset(); diff --git a/src/Workspace.cc b/src/Workspace.cc index 73ed077..cd899c6 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -136,7 +136,7 @@ void Workspace::hideAll(bool interrupt_moving) { void Workspace::removeAll(unsigned int dest) { Windows tmp_list(m_windowlist); Windows::iterator it = tmp_list.begin(); - Windows::const_iterator it_end = tmp_list.end(); + Windows::iterator it_end = tmp_list.end(); for (; it != it_end; ++it) m_screen.sendToWorkspace(dest, *it, false); } -- cgit v0.11.2