From 60fef19adbbadd79e7d99756be073f6f661ac239 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 11 Feb 2002 10:58:48 +0000 Subject: to stl list --- src/BaseDisplay.hh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/BaseDisplay.hh b/src/BaseDisplay.hh index b927691..991887f 100644 --- a/src/BaseDisplay.hh +++ b/src/BaseDisplay.hh @@ -22,18 +22,20 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: BaseDisplay.hh,v 1.10 2002/02/07 14:44:09 fluxgen Exp $ +// $Id: BaseDisplay.hh,v 1.11 2002/02/11 10:58:48 fluxgen Exp $ #ifndef _BASEDISPLAY_HH_ #define _BASEDISPLAY_HH_ -#include "LinkedList.hh" #include "Timer.hh" #include "NotCopyable.hh" #include #include +#include +#include + // forward declaration class ScreenInfo; @@ -229,7 +231,7 @@ public: #endif // NEWWMSPEC inline ScreenInfo *getScreenInfo(int s) - { return (ScreenInfo *) screenInfoList->find(s); } + { return (ScreenInfo *) screenInfoList[s]; } inline const Bool &hasShapeExtensions(void) const { return shape.extensions; } @@ -351,8 +353,12 @@ private: bool m_startup, m_shutdown; Display *m_display; - LinkedList *screenInfoList; - LinkedList *timerList; + + typedef std::vector ScreenInfoList; + ScreenInfoList screenInfoList; + + typedef std::list TimerList; + TimerList timerList; char *m_display_name, *m_app_name; int number_of_screens, m_server_grabs, colors_per_channel; -- cgit v0.11.2