Incompasses all uninitialized value defects in libs/libmyth/.
From: Erik Hovland <erik@hovland.org>
---
libs/libmyth/lcddevice.h | 7 +------
libs/libmyth/screensaver-x11.cpp | 3 ++-
libs/libmyth/uitypes.cpp | 13 +++++++------
libs/libmyth/xmlparse.cpp | 2 +-
4 files changed, 11 insertions(+), 14 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; } |
diff --git a/libs/libmyth/screensaver-x11.cpp b/libs/libmyth/screensaver-x11.cpp
index b907e33..c24f572 100644
|
a
|
b
|
class ScreenSaverX11Private
|
| 149 | 149 | private: |
| 150 | 150 | struct ScreenSaverState |
| 151 | 151 | { |
| 152 | | ScreenSaverState() : saved(false) {} |
| | 152 | ScreenSaverState() : saved(false), timeout(-1), interval(-1), |
| | 153 | preferblank(-1), allowexposure(-1) {} |
| 153 | 154 | bool saved; |
| 154 | 155 | int timeout; |
| 155 | 156 | int interval; |
diff --git a/libs/libmyth/uitypes.cpp b/libs/libmyth/uitypes.cpp
index 0bfca64..3fa04b5 100644
|
a
|
b
|
using namespace std;
|
| 24 | 24 | #undef LoadImage |
| 25 | 25 | #endif |
| 26 | 26 | |
| 27 | | LayerSet::LayerSet(const QString &name) |
| | 27 | LayerSet::LayerSet(const QString &name) : |
| | 28 | m_debug(false), |
| | 29 | m_context(-1), |
| | 30 | m_order(-1), |
| | 31 | m_name(name), |
| | 32 | numb_layers(-1), |
| | 33 | allTypes(new vector<UIType *>) |
| 28 | 34 | { |
| 29 | | m_name = name; |
| 30 | | m_context = -1; |
| 31 | | m_debug = false; |
| 32 | | numb_layers = -1; |
| 33 | | allTypes = new vector<UIType *>; |
| 34 | 35 | } |
| 35 | 36 | |
| 36 | 37 | LayerSet::~LayerSet() |
diff --git a/libs/libmyth/xmlparse.cpp b/libs/libmyth/xmlparse.cpp
index fcbb9c4..59d76b4 100644
|
a
|
b
|
using namespace std;
|
| 19 | 19 | |
| 20 | 20 | MPUBLIC QMap<QString, fontProp> globalFontMap; |
| 21 | 21 | |
| 22 | | XMLParse::XMLParse(void) |
| | 22 | XMLParse::XMLParse(void) : wmult(0.0), hmult(0.0), usetrans(-1) |
| 23 | 23 | { |
| 24 | 24 | allTypes = new vector<LayerSet *>; |
| 25 | 25 | } |