summaryrefslogtreecommitdiff
path: root/src/guichan/include
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-30 04:58:55 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-30 04:58:55 +0300
commita7c7cc655f94acc4476e681ac258ff6981702944 (patch)
treef7d504f11cafcd32e563f1f8a0954c522ba902b8 /src/guichan/include
parentdda225eebf1c3cb9e0b4e657a0875d1180380159 (diff)
downloadmanaplus-a7c7cc655f94acc4476e681ac258ff6981702944.tar.gz
manaplus-a7c7cc655f94acc4476e681ac258ff6981702944.tar.bz2
manaplus-a7c7cc655f94acc4476e681ac258ff6981702944.tar.xz
manaplus-a7c7cc655f94acc4476e681ac258ff6981702944.zip
Small speed improve in guichan code.
Diffstat (limited to 'src/guichan/include')
-rw-r--r--src/guichan/include/guichan/widget.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/guichan/include/guichan/widget.hpp b/src/guichan/include/guichan/widget.hpp
index 0f8c803ca..ccb56ea70 100644
--- a/src/guichan/include/guichan/widget.hpp
+++ b/src/guichan/include/guichan/widget.hpp
@@ -45,6 +45,7 @@
#define GCN_WIDGET_HPP
#include <list>
+#include <set>
#include <string>
#include "guichan/color.hpp"
@@ -1196,6 +1197,8 @@ namespace gcn
* Holds a list of all instances of widgets.
*/
static std::list<Widget*> mWidgets;
+
+ static std::set<Widget*> mWidgetsSet;
};
}