From b6a9ac4e0225c0585d70588a7ca31471cfc14771 Mon Sep 17 00:00:00 2001 From: doitux Date: Thu, 28 Oct 2010 08:19:52 +0000 Subject: [PATCH] make cppcheck happier in the gui ;-) --- src/gui/qt/gametable/myactionbutton.cpp | 2 +- src/gui/qt/gametable/mychancelabel.cpp | 22 +++++++++++++++++++++- src/gui/qt/gametable/mynamelabel.cpp | 2 +- src/gui/qt/gametable/mysetlabel.cpp | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/gui/qt/gametable/myactionbutton.cpp b/src/gui/qt/gametable/myactionbutton.cpp index a80accdc..23de17a2 100644 --- a/src/gui/qt/gametable/myactionbutton.cpp +++ b/src/gui/qt/gametable/myactionbutton.cpp @@ -15,7 +15,7 @@ using namespace std; MyActionButton::MyActionButton(QGroupBox* parent) - : QPushButton(parent) + : QPushButton(parent), myStyle(NULL) { } diff --git a/src/gui/qt/gametable/mychancelabel.cpp b/src/gui/qt/gametable/mychancelabel.cpp index 3c6321f1..a17c2d30 100644 --- a/src/gui/qt/gametable/mychancelabel.cpp +++ b/src/gui/qt/gametable/mychancelabel.cpp @@ -18,7 +18,27 @@ using namespace std; MyChanceLabel::MyChanceLabel(QWidget* parent) : QLabel(parent), myW(0), myStyle(0) { + RFChance[0] = 0; + SFChance[0] = 0; + FOAKChance[0] = 0; + FHChance[0] = 0; + FLChance[0] = 0; + STRChance[0] = 0; + TOAKChance[0] = 0; + TPChance[0] = 0; + OPChance[0] = 0; + HCChance[0] = 0; + RFChance[1] = 0; + SFChance[1] = 0; + FOAKChance[1] = 0; + FHChance[1] = 0; + FLChance[1] = 0; + STRChance[1] = 0; + TOAKChance[1] = 0; + TPChance[1] = 0; + OPChance[1] = 0; + HCChance[1] = 0; } MyChanceLabel::~MyChanceLabel() @@ -163,4 +183,4 @@ void MyChanceLabel::resetChance() HCChance[1] = 0; update(); -} \ No newline at end of file +} diff --git a/src/gui/qt/gametable/mynamelabel.cpp b/src/gui/qt/gametable/mynamelabel.cpp index 4d830bc7..ad7e0af4 100644 --- a/src/gui/qt/gametable/mynamelabel.cpp +++ b/src/gui/qt/gametable/mynamelabel.cpp @@ -15,7 +15,7 @@ #include "gametablestylereader.h" MyNameLabel::MyNameLabel(QGroupBox* parent) - : QLabel(parent) + : QLabel(parent), myW(0) { } diff --git a/src/gui/qt/gametable/mysetlabel.cpp b/src/gui/qt/gametable/mysetlabel.cpp index 377b9cda..75e9821b 100755 --- a/src/gui/qt/gametable/mysetlabel.cpp +++ b/src/gui/qt/gametable/mysetlabel.cpp @@ -16,7 +16,7 @@ using namespace std; MySetLabel::MySetLabel(QGroupBox* parent) - : QLabel(parent) + : QLabel(parent), myW(0) { }