From 5c9ab8b84508986974e89b929c6cfbbc1bf4486e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 27 Apr 2002 18:21:21 +0000 Subject: converted from LinkedList to a vector --- src/Basemenu.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Basemenu.h') diff --git a/src/Basemenu.h b/src/Basemenu.h index fc9c894c..d9bb116f 100644 --- a/src/Basemenu.h +++ b/src/Basemenu.h @@ -30,12 +30,12 @@ class BImageControl; class BScreen; class Basemenu; class BasemenuItem; -#include "LinkedList.h" - +#include +typedef vector menuitemList; class Basemenu { private: - LinkedList *menuitems; + menuitemList menuitems; Openbox &openbox; Basemenu *parent; BImageControl *image_ctrl; @@ -59,7 +59,7 @@ private: protected: - inline BasemenuItem *find(int index) { return menuitems->find(index); } + inline BasemenuItem *find(int index) { return menuitems[index]; } inline void setTitleVisibility(Bool b) { title_vis = b; } inline void setMovable(Bool b) { movable = b; } inline void setHideTree(Bool h) { hide_tree = h; } @@ -93,7 +93,7 @@ public: inline const int &getX(void) const { return menu.x; } inline const int &getY(void) const { return menu.y; } - inline int getCount(void) { return menuitems->count(); } + inline int getCount(void) { return menuitems.size(); } inline const int &getCurrentSubmenu(void) const { return which_sub; } inline const unsigned int &getWidth(void) const { return menu.width; } -- cgit v1.2.3