Skip to content

Commit

Permalink
added default constructor for MenuItem
Browse files Browse the repository at this point in the history
  • Loading branch information
forntoh committed Jun 9, 2020
1 parent 812d07e commit ad4401b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/MenuItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MenuItem {
//
// constructors
//
MenuItem();
MenuItem() = default;
MenuItem(char* text) : text(text) {}
MenuItem(char* text, fptr callback, byte type)
: text(text), callback(callback), type(type) {}
Expand Down Expand Up @@ -60,10 +60,6 @@ class MenuItem {
String value = "";
};

MenuItem::MenuItem() {

}

class ItemHeader : public MenuItem {
public:
ItemHeader() : MenuItem(this, MENU_ITEM_MAIN_MENU_HEADER) {}
Expand Down

0 comments on commit ad4401b

Please sign in to comment.