diff options
author | fluxgen <fluxgen> | 2002-02-04 22:41:27 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-02-04 22:41:27 (GMT) |
commit | cdc6210bfe53ca05eae93e48e52a1ffed3a9b610 (patch) | |
tree | 9384d79d65250831ade68d648c90127835755a67 /src/Toolbar.cc | |
parent | 0c4c33f9f595818868dc83f8582909f68dd7efdd (diff) | |
download | fluxbox-cdc6210bfe53ca05eae93e48e52a1ffed3a9b610.zip fluxbox-cdc6210bfe53ca05eae93e48e52a1ffed3a9b610.tar.bz2 |
replaced LinkedList with stl container
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 29e3685..2415506 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -503,18 +503,24 @@ void Toolbar::reconfigure(void) { | |||
503 | if (!iconbar) { | 503 | if (!iconbar) { |
504 | iconbar = new IconBar(screen, frame.window_label); | 504 | iconbar = new IconBar(screen, frame.window_label); |
505 | if (screen->getIconCount()) { | 505 | if (screen->getIconCount()) { |
506 | LinkedListIterator<FluxboxWindow> it(screen->getIconList()); | 506 | BScreen::Icons & l = screen->getIconList(); |
507 | for(; it.current(); it++) | 507 | BScreen::Icons::iterator it = l.begin(); |
508 | addIcon(it.current()); | 508 | BScreen::Icons::iterator it_end = l.end(); |
509 | for(; it != it_end; ++it) { | ||
510 | addIcon(*it); | ||
511 | } | ||
509 | } | 512 | } |
510 | 513 | ||
511 | } else | 514 | } else |
512 | iconbar->reconfigure(); | 515 | iconbar->reconfigure(); |
513 | } else { | 516 | } else { |
514 | if (iconbar) { | 517 | if (iconbar) { |
515 | LinkedListIterator<FluxboxWindow> it(screen->getIconList()); | 518 | BScreen::Icons & l = screen->getIconList(); |
516 | for (; it.current(); it++) | 519 | BScreen::Icons::iterator it = l.begin(); |
517 | delIcon(it.current()); | 520 | BScreen::Icons::iterator it_end = l.end(); |
521 | for(; it != it_end; ++it) { | ||
522 | delIcon(*it); | ||
523 | } | ||
518 | delete iconbar; | 524 | delete iconbar; |
519 | iconbar = 0; | 525 | iconbar = 0; |
520 | } | 526 | } |