summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/FbTk/XLayer.cc6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 93fde91..b409e2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.11 2Changes for 0.9.11
3*04/09/10:
4 * Clean up some unused variables (thanks Ryan O'Hara)
5 FbTk/XLayer.cc
3*04/09/09: 6*04/09/09:
4 * tidy+replace qiv with display in screenshot, add jpg option (Han) 7 * tidy+replace qiv with display in screenshot, add jpg option (Han)
5 fluxbox-generate_menu.in 8 fluxbox-generate_menu.in
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;