summaryrefslogtreecommitdiff
path: root/src/guichan/basiccontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-02 20:06:58 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-02 20:06:58 +0300
commit45a9bbd34cda3c784b935860a4cc616a0314a57c (patch)
treee4cee8daa007c727e3ce4511e24aebbbcc6bc9d8 /src/guichan/basiccontainer.cpp
parent506bf9c3bd1ddeb70529876148140c6f7c91acf2 (diff)
downloadmanaverse-45a9bbd34cda3c784b935860a4cc616a0314a57c.tar.gz
manaverse-45a9bbd34cda3c784b935860a4cc616a0314a57c.tar.bz2
manaverse-45a9bbd34cda3c784b935860a4cc616a0314a57c.tar.xz
manaverse-45a9bbd34cda3c784b935860a4cc616a0314a57c.zip
Replace guichan iterators to const_iterator if need.
Diffstat (limited to 'src/guichan/basiccontainer.cpp')
-rw-r--r--src/guichan/basiccontainer.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/guichan/basiccontainer.cpp b/src/guichan/basiccontainer.cpp
index d51968eb6..439535c9a 100644
--- a/src/guichan/basiccontainer.cpp
+++ b/src/guichan/basiccontainer.cpp
@@ -110,7 +110,7 @@ namespace gcn
void BasicContainer::focusNext()
{
- WidgetListIterator it;
+ WidgetListConstIterator it;
for (it = mWidgets.begin(); it != mWidgets.end(); ++ it)
{
@@ -118,7 +118,7 @@ namespace gcn
break;
}
- WidgetListIterator end = it;
+ WidgetListConstIterator end = it;
if (it == mWidgets.end())
it = mWidgets.begin();
@@ -140,7 +140,7 @@ namespace gcn
void BasicContainer::focusPrevious()
{
- WidgetListReverseIterator it;
+ WidgetListCReverseIterator it;
for (it = mWidgets.rbegin(); it != mWidgets.rend(); ++ it)
{
@@ -148,7 +148,7 @@ namespace gcn
break;
}
- WidgetListReverseIterator end = it;
+ WidgetListCReverseIterator end = it;
++ it;
@@ -178,7 +178,7 @@ namespace gcn
x -= r.x;
y -= r.y;
- WidgetListReverseIterator it;
+ WidgetListCReverseIterator it;
for (it = mWidgets.rbegin(); it != mWidgets.rend(); ++ it)
{
if ((*it)->isVisible() && (*it)->getDimension()
@@ -203,7 +203,7 @@ namespace gcn
if (mInternalFocusHandler != NULL)
return;
- WidgetListIterator iter;
+ WidgetListConstIterator iter;
for (iter = mWidgets.begin(); iter != mWidgets.end(); ++ iter)
{
(*iter)->_setFocusHandler(focusHandler);
@@ -243,7 +243,7 @@ namespace gcn
void BasicContainer::clear()
{
- WidgetListIterator iter;
+ WidgetListConstIterator iter;
for (iter = mWidgets.begin(); iter != mWidgets.end(); ++ iter)
{
@@ -259,7 +259,7 @@ namespace gcn
{
graphics->pushClipArea(getChildrenArea());
- WidgetListIterator iter;
+ WidgetListConstIterator iter;
for (iter = mWidgets.begin(); iter != mWidgets.end(); ++ iter)
{
if ((*iter)->isVisible())
@@ -289,7 +289,7 @@ namespace gcn
void BasicContainer::logicChildren()
{
- WidgetListIterator iter;
+ WidgetListConstIterator iter;
for (iter = mWidgets.begin(); iter != mWidgets.end(); ++ iter)
(*iter)->logic();
}
@@ -324,7 +324,7 @@ namespace gcn
{
Widget::setInternalFocusHandler(focusHandler);
- WidgetListIterator iter;
+ WidgetListConstIterator iter;
for (iter = mWidgets.begin(); iter != mWidgets.end(); ++ iter)
{
if (mInternalFocusHandler == NULL)
@@ -336,7 +336,7 @@ namespace gcn
Widget* BasicContainer::findWidgetById(const std::string& id)
{
- WidgetListIterator iter;
+ WidgetListConstIterator iter;
for (iter = mWidgets.begin(); iter != mWidgets.end(); ++ iter)
{
if ((*iter)->getId() == id)