summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/XLayer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/XLayer.cc b/src/FbTk/XLayer.cc
index 8164444..8b3ead0 100644
--- a/src/FbTk/XLayer.cc
+++ b/src/FbTk/XLayer.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: XLayer.cc,v 1.9 2003/07/20 18:05:40 rathnor Exp $ 23// $Id: XLayer.cc,v 1.10 2004/09/10 04:03:58 rathnor Exp $
24 24
25#include "XLayer.hh" 25#include "XLayer.hh"
26#include "XLayerItem.hh" 26#include "XLayerItem.hh"
@@ -53,7 +53,7 @@ void XLayer::restack() {
53 size_t j=0; 53 size_t j=0;
54 54
55 // add all the windows from each item 55 // add all the windows from each item
56 for (size_t i=0; it != it_end; ++it, i++) { 56 for (; it != it_end; ++it) {
57 XLayerItem::Windows::const_iterator wit = (*it)->getWindows().begin(); 57 XLayerItem::Windows::const_iterator wit = (*it)->getWindows().begin();
58 XLayerItem::Windows::const_iterator wit_end = (*it)->getWindows().end(); 58 XLayerItem::Windows::const_iterator wit_end = (*it)->getWindows().end();
59 for (; wit != wit_end; ++wit) { 59 for (; wit != wit_end; ++wit) {
@@ -72,7 +72,7 @@ int XLayer::countWindows() {
72 int num_windows = 0; 72 int num_windows = 0;
73 iterator it = itemList().begin(); 73 iterator it = itemList().begin();
74 iterator it_end = itemList().end(); 74 iterator it_end = itemList().end();
75 for (size_t i=0; it != it_end; ++it, i++) { 75 for (; it != it_end; ++it) {
76 num_windows += (*it)->numWindows(); 76 num_windows += (*it)->numWindows();
77 } 77 }
78 return num_windows; 78 return num_windows;