X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/3f9fdda7c6c6254a322afc2b09b33eba30a90f08..0907aa4037b12b6b88ee24495d4577a064d4f8db:/projects/stargazer/actions.h diff --git a/projects/stargazer/actions.h b/projects/stargazer/actions.h index 6c1fc8a8..eea72b77 100644 --- a/projects/stargazer/actions.h +++ b/projects/stargazer/actions.h @@ -14,7 +14,7 @@ // actionsList.InvokeAll(); #include -#include +#include #include // Generalized actor type - a method of some class with one argument @@ -41,7 +41,7 @@ public: ACTION(ACTIVE_CLASS & ac, typename ACTOR::TYPE a, DATA_TYPE d) - : activeClass(ac), actor(a), data(d) {}; + : activeClass(ac), actor(a), data(d) {} void Invoke(); private: ACTION(const ACTION & rvalue); @@ -54,11 +54,11 @@ private: // A list of an actions // All methods are thread-safe -class ACTIONS_LIST : private std::list +class ACTIONS_LIST : private std::vector { public: // Just a typedef for parent class - typedef std::list parent; + typedef std::vector parent; // Initialize mutex ACTIONS_LIST();