diff options
author | Max Horn | 2009-04-27 12:29:51 +0000 |
---|---|---|
committer | Max Horn | 2009-04-27 12:29:51 +0000 |
commit | 5881abb213449ad8ac169c4dea729b7e7bca535f (patch) | |
tree | 9bd588749495607dbfe4168328834d19dbcf2e82 /engines/sci/gfx/gfx_widgets.cpp | |
parent | 3817fbf7d05b7f4f79640681a7a3b01b0e338343 (diff) | |
download | scummvm-rg350-5881abb213449ad8ac169c4dea729b7e7bca535f.tar.gz scummvm-rg350-5881abb213449ad8ac169c4dea729b7e7bca535f.tar.bz2 scummvm-rg350-5881abb213449ad8ac169c4dea729b7e7bca535f.zip |
SCI: Removed unused vars; doxygenified some comments; cleanup
svn-id: r40159
Diffstat (limited to 'engines/sci/gfx/gfx_widgets.cpp')
-rw-r--r-- | engines/sci/gfx/gfx_widgets.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/sci/gfx/gfx_widgets.cpp b/engines/sci/gfx/gfx_widgets.cpp index f7fcc189e9..d90414b622 100644 --- a/engines/sci/gfx/gfx_widgets.cpp +++ b/engines/sci/gfx/gfx_widgets.cpp @@ -1138,16 +1138,13 @@ int GfxContainer::setVisual(GfxVisual *visual) { } static int _gfxwop_container_free_tagged(GfxContainer *container) { - GfxWidget *seekerp = container->_contents; - - while (seekerp) { - GfxWidget *redshirt = seekerp; + GfxWidget *seeker = container->_contents; - if (redshirt->_flags & GFXW_FLAG_TAGGED) { - seekerp = (redshirt->_next); - delete redshirt; - } else - seekerp = seekerp->_next; + while (seeker) { + GfxWidget *next = seeker->_next; + if (seeker->_flags & GFXW_FLAG_TAGGED) + delete seeker; + seeker = next; } return 0; |