summaryrefslogtreecommitdiff
path: root/src/guichan/basiccontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-02 19:42:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-02 20:05:36 +0300
commitc92bfce739f2ff463365aaa47a50ebbb1bfef7e9 (patch)
tree13fc9ff1418b31022f173d714dcf153fee8891e8 /src/guichan/basiccontainer.cpp
parentccbe435e2a97ffe3d371e992462ccf5af591d4cd (diff)
downloadplus-c92bfce739f2ff463365aaa47a50ebbb1bfef7e9.tar.gz
plus-c92bfce739f2ff463365aaa47a50ebbb1bfef7e9.tar.bz2
plus-c92bfce739f2ff463365aaa47a50ebbb1bfef7e9.tar.xz
plus-c92bfce739f2ff463365aaa47a50ebbb1bfef7e9.zip
A bit improve speed in guichan containers.
Diffstat (limited to 'src/guichan/basiccontainer.cpp')
-rw-r--r--src/guichan/basiccontainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guichan/basiccontainer.cpp b/src/guichan/basiccontainer.cpp
index aa804f88b..d51968eb6 100644
--- a/src/guichan/basiccontainer.cpp
+++ b/src/guichan/basiccontainer.cpp
@@ -88,7 +88,8 @@ namespace gcn
throw GCN_EXCEPTION("There is no such widget in this container.");
mWidgets.erase(iter);
- mWidgets.push_front(widget);
+ mWidgets.insert(mWidgets.begin(), widget);
+// mWidgets.push_front(widget);
}
void BasicContainer::death(const Event& event)