From 1b1efab489353734f0047f97fe5fef7f96d0ee68 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 14 May 2002 19:28:34 +0000 Subject: compile with -Wall -W -pendantic when --enable-debug is set. --- src/Workspace.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/Workspace.cc') diff --git a/src/Workspace.cc b/src/Workspace.cc index 41a09324..619b5205 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -81,7 +81,7 @@ Workspace::~Workspace(void) { } -const int Workspace::addWindow(OpenboxWindow *w, Bool place) { +int Workspace::addWindow(OpenboxWindow *w, bool place) { if (! w) return -1; if (place) placeWindow(*w); @@ -103,7 +103,7 @@ const int Workspace::addWindow(OpenboxWindow *w, Bool place) { } -const int Workspace::removeWindow(OpenboxWindow *w) { +int Workspace::removeWindow(OpenboxWindow *w) { if (! w) return -1; _zorder.remove(w); @@ -190,7 +190,7 @@ void Workspace::raiseWindow(OpenboxWindow *w) { Workspace *wkspc; win = bottom; - while (True) { + while (true) { *(curr++) = win->getFrameWindow(); screen.updateNetizenWindowRaise(win->getClientWindow()); @@ -229,7 +229,7 @@ void Workspace::lowerWindow(OpenboxWindow *w) { Window *nstack = new Window[i], *curr = nstack; Workspace *wkspc; - while (True) { + while (true) { *(curr++) = win->getFrameWindow(); screen.updateNetizenWindowLower(win->getClientWindow()); @@ -267,25 +267,25 @@ void Workspace::reconfigure(void) { OpenboxWindow *Workspace::getWindow(int index) { - if ((index >= 0) && (index < _windows.size())) + if ((index >= 0) && (index < (signed)_windows.size())) return _windows[index]; else return (OpenboxWindow *) 0; } -const int Workspace::getCount(void) { - return _windows.size(); +int Workspace::getCount(void) { + return (signed)_windows.size(); } void Workspace::update(void) { clientmenu->update(); - screen.getToolbar()->redrawWindowLabel(True); + screen.getToolbar()->redrawWindowLabel(true); } -Bool Workspace::isCurrent(void) { +bool Workspace::isCurrent(void) { return (id == screen.getCurrentWorkspaceID()); } -- cgit v1.2.3