diff --git a/src/menu.h b/src/menu.h index f60621de..5172e7ee 100644 --- a/src/menu.h +++ b/src/menu.h @@ -56,16 +56,18 @@ template class Menu : public Window, public List struct Option { - Option() : Item(0), isBold(0), isSelected(0), isStatic(0), haveSeparator(0) { } - T *Item; + Option() : isBold(0), isSelected(0), isStatic(0) { } + Option(const T &t, bool is_bold, bool is_static) : + Item(t), isBold(is_bold), isSelected(0), isStatic(is_static) { } + + T Item; bool isBold; bool isSelected; bool isStatic; - bool haveSeparator; }; - typedef typename std::vector