diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-27 18:21:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-27 18:21:21 +0000 |
| commit | 5c9ab8b84508986974e89b929c6cfbbc1bf4486e (patch) | |
| tree | 9e6b2bdc8eaf08f5630b444f977ec8479641c06f /src/Basemenu.h | |
| parent | 3001cec7901b119ec8cdfb87a78142be264f8039 (diff) | |
converted from LinkedList to a vector
Diffstat (limited to 'src/Basemenu.h')
| -rw-r--r-- | src/Basemenu.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 <vector> +typedef vector<BasemenuItem *> menuitemList; class Basemenu { private: - LinkedList<BasemenuItem> *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; } |
