diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-23 02:46:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-23 02:48:43 +0300 |
commit | a69a87c5a81ddbf25a25c5549259da550d207bda (patch) | |
tree | 59f1a919b327912395ab84bab1684118bf0379be /src/guichan/widgets/radiobutton.cpp | |
parent | e646f2fae3f323b7faa26aa9540524d1765211ee (diff) | |
download | manaverse-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.gz manaverse-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.bz2 manaverse-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.xz manaverse-a69a87c5a81ddbf25a25c5549259da550d207bda.zip |
Improve a bit iterators again.
Diffstat (limited to 'src/guichan/widgets/radiobutton.cpp')
-rw-r--r-- | src/guichan/widgets/radiobutton.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/guichan/widgets/radiobutton.cpp b/src/guichan/widgets/radiobutton.cpp index c5c0b1ebd..26bd7e44c 100644 --- a/src/guichan/widgets/radiobutton.cpp +++ b/src/guichan/widgets/radiobutton.cpp @@ -103,10 +103,8 @@ namespace gcn { if (selected && mGroup != "") { - GroupIterator iter, iterEnd; - iterEnd = mGroupMap.upper_bound(mGroup); - - for (iter = mGroupMap.lower_bound(mGroup); + for (GroupIterator iter = mGroupMap.lower_bound(mGroup), + iterEnd = mGroupMap.upper_bound(mGroup); iter != iterEnd; ++ iter) { @@ -150,10 +148,8 @@ namespace gcn { if (mGroup != "") { - GroupIterator iter, iterEnd; - iterEnd = mGroupMap.upper_bound(mGroup); - - for (iter = mGroupMap.lower_bound(mGroup); + for (GroupIterator iter = mGroupMap.lower_bound(mGroup), + iterEnd = mGroupMap.upper_bound(mGroup); iter != iterEnd; ++ iter) { |