Ticket #5078: libs_libmyth_lcddevice.h-remove-default-ctor.patch

File libs_libmyth_lcddevice.h-remove-default-ctor.patch, 1.6 KB (added by Erik Hovland <erik@…>, 16 years ago)

removes unnecessary ctors and dtors

  • libs/libmyth/lcddevice.h

    LCDTextItem has a default constructor that doesn't initialize any
    
    From: Erik Hovland <erik@hovland.org>
    
    of the class's members.
    ---
    
     libs/libmyth/lcddevice.h |    7 +------
     1 files changed, 1 insertions(+), 6 deletions(-)
    
    diff --git a/libs/libmyth/lcddevice.h b/libs/libmyth/lcddevice.h
    index 1ad24df..6b75ad9 100644
    a b enum CHECKED_STATE {CHECKED = 0, UNCHECKED, NOTCHECKABLE }; 
    2121class MPUBLIC LCDMenuItem
    2222{
    2323  public:
    24     LCDMenuItem() {}
    2524    LCDMenuItem(bool item_selected, CHECKED_STATE item_checked,
    2625                QString item_name, unsigned int item_indent  = 0)
    2726    {
    2827        selected = item_selected;
    2928        checked = item_checked;
    3029        name = item_name;
     30        scroll = false;
    3131        indent = item_indent;
    3232        scroll = false;
    3333        scrollPosition = indent;
    3434    }
    3535
    36    ~LCDMenuItem() {}
    37 
    3836    CHECKED_STATE isChecked() { return checked; }
    3937    bool isSelected() { return selected; }
    4038    QString ItemName() { return name; }
    enum TEXT_ALIGNMENT {ALIGN_LEFT, ALIGN_RIGHT, ALIGN_CENTERED }; 
    6462class MPUBLIC LCDTextItem
    6563{
    6664  public:
    67     LCDTextItem() {}
    6865    LCDTextItem(unsigned int row, TEXT_ALIGNMENT align, QString text,
    6966                QString screen = "Generic", bool scroll = false,
    7067                QString widget = "textWidget")
    class MPUBLIC LCDTextItem 
    7774        itemScrollable = scroll;
    7875    }
    7976
    80    ~LCDTextItem(){};
    81 
    8277    unsigned int getRow() { return itemRow; }
    8378    TEXT_ALIGNMENT getAlignment() { return itemAlignment; }
    8479    QString getText() { return itemText; }