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 }; |
21 | 21 | class MPUBLIC LCDMenuItem |
22 | 22 | { |
23 | 23 | public: |
24 | | LCDMenuItem() {} |
25 | 24 | LCDMenuItem(bool item_selected, CHECKED_STATE item_checked, |
26 | 25 | QString item_name, unsigned int item_indent = 0) |
27 | 26 | { |
28 | 27 | selected = item_selected; |
29 | 28 | checked = item_checked; |
30 | 29 | name = item_name; |
| 30 | scroll = false; |
31 | 31 | indent = item_indent; |
32 | 32 | scroll = false; |
33 | 33 | scrollPosition = indent; |
34 | 34 | } |
35 | 35 | |
36 | | ~LCDMenuItem() {} |
37 | | |
38 | 36 | CHECKED_STATE isChecked() { return checked; } |
39 | 37 | bool isSelected() { return selected; } |
40 | 38 | QString ItemName() { return name; } |
… |
… |
enum TEXT_ALIGNMENT {ALIGN_LEFT, ALIGN_RIGHT, ALIGN_CENTERED }; |
64 | 62 | class MPUBLIC LCDTextItem |
65 | 63 | { |
66 | 64 | public: |
67 | | LCDTextItem() {} |
68 | 65 | LCDTextItem(unsigned int row, TEXT_ALIGNMENT align, QString text, |
69 | 66 | QString screen = "Generic", bool scroll = false, |
70 | 67 | QString widget = "textWidget") |
… |
… |
class MPUBLIC LCDTextItem |
77 | 74 | itemScrollable = scroll; |
78 | 75 | } |
79 | 76 | |
80 | | ~LCDTextItem(){}; |
81 | | |
82 | 77 | unsigned int getRow() { return itemRow; } |
83 | 78 | TEXT_ALIGNMENT getAlignment() { return itemAlignment; } |
84 | 79 | QString getText() { return itemText; } |