fixed gcc 2.96 compile problem

This commit is contained in:
fluxgen 2007-10-24 19:38:27 +00:00
parent e7513df45f
commit a092d3fc1b
4 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -23,6 +23,8 @@
#define LAYER_HH
#include <string>
#include <stdio.h>
using std::string;
/**

View file

@ -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();

View file

@ -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);
}