initialize not initialized var

This commit is contained in:
satbaby
2012-11-05 09:24:51 +01:00
parent 5e284c68c3
commit 926e0ce141
12 changed files with 53 additions and 7 deletions

View File

@@ -52,6 +52,8 @@ extern cVideo *videoDecoder;
CCECSetup::CCECSetup()
{
width = w_max (40, 10); //%
cec1 = NULL;
cec2 = NULL;
}
CCECSetup::~CCECSetup()

View File

@@ -90,7 +90,24 @@ CInfoViewer::CInfoViewer ()
timescale = NULL;
frameBuffer = CFrameBuffer::getInstance();
infoViewerBB = CInfoViewerBB::getInstance();
InfoHeightY = 0;
ButtonWidth = 0;
rt_dx = 0;
rt_dy = 0;
ChanNameX = 0;
ChanNameY = 0;
ChanWidth = 0;
ChanHeight = 0;
time_left_width = 0;
time_dot_width = 0;
time_width = 0;
time_height = 0;
old_timestr[0] = 0;
lastsnr = 0;
lastsig = 0;
lasttime = 0;
aspectRatio = 0;
ChanInfoX = 0;
Init();
infoViewerBB->Init();
}

View File

@@ -89,6 +89,11 @@ CInfoViewerBB::CInfoViewerBB()
#endif
hddperT = 0;
hddperTflag = false;
bbIconInfo[0].x = 0;
bbIconInfo[0].h = 0;
BBarY = 0;
BBarFontY = 0;
Init();
}

View File

@@ -96,7 +96,6 @@ class CListFrame
int m_nNrOfPages;
int m_nNrOfLines;
int m_nNrOfRows;
int m_nMaxLineWidth;
int m_nLinesPerPage;
int m_nCurrentLine;
int m_nCurrentPage;
@@ -142,7 +141,6 @@ class CListFrame
void paint(void);
inline CBox getWindowsPos(void) {return(m_cFrame);};
inline int getMaxLineWidth(void) {return(m_nMaxLineWidth);};
inline int getSelectedLine(void) {return(m_nSelectedLine);};
inline int getLines(void) {return(m_nNrOfLines);};
inline int getPages(void) {return(m_nNrOfPages);};

View File

@@ -213,6 +213,8 @@ CMsgBox::~CMsgBox()
void CMsgBox::initVar(void)
{
//TRACE("->CMsgBox::InitVar\r\n");
mode = AUTO_WIDTH;
m_nResult = mbrYes;
m_cTitle = "";
m_cIcon = "";
m_nMode = SCROLL | TITLE | BORDER ;

View File

@@ -49,6 +49,10 @@ CProgressWindow::CProgressWindow()
global_progress = local_progress = 101;
statusText = "";
globalstatusX = 0;
globalstatusY = 0;
localstatusY = 0;
statusTextY = 0;
x = frameBuffer->getScreenX() + ((frameBuffer->getScreenWidth() - width ) >> 1 );
y = frameBuffer->getScreenY() + ((frameBuffer->getScreenHeight() - height) >>1 );

View File

@@ -108,7 +108,7 @@ class CExtendedInput_Item_Spacer : public CExtendedInput_Item
int mSpacingX;
int mSpacingY;
public:
CExtendedInput_Item_Spacer(){};
CExtendedInput_Item_Spacer(){mSpacingY = 0;mSpacingX = 0;};
CExtendedInput_Item_Spacer(int spaceX, int spaceY=0){mSpacingX=spaceX;mSpacingY=spaceY;};
virtual void init(int &x, int &y){x+=mSpacingX;y+=mSpacingY;};
virtual bool isSelectable(){return false;};
@@ -119,7 +119,7 @@ class CExtendedInput_Item_newLiner : public CExtendedInput_Item
protected:
int mSpacingY;
public:
CExtendedInput_Item_newLiner(){};
CExtendedInput_Item_newLiner(){mSpacingY=0;};
CExtendedInput_Item_newLiner(int spaceY){mSpacingY=spaceY;};
virtual void init(int &x, int &y){x=0;y+=mSpacingY;};
virtual bool isSelectable(){return false;};

View File

@@ -152,6 +152,11 @@ CTextBox::~CTextBox()
void CTextBox::initVar(void)
{
//TRACE("[CTextBox]->InitVar\r\n");
m_showTextFrame = 0;
m_nNrOfNewLine = 0;
m_nMaxLineWidth = 0;
max_width = 0;
m_cText = "";
m_nMode = SCROLL;

View File

@@ -72,7 +72,7 @@ class CBox
public:
/* Constructor */
inline CBox(){;};
inline CBox(){iY = 0; iX = 0; iWidth = 0;iHeight = 0;};
inline CBox( const int _iX, const int _iY, const int _iWidth, const int _iHeight){iX=_iX; iY=_iY; iWidth=_iWidth; iHeight=_iHeight;};
inline ~CBox(){;};
/* Functions */

View File

@@ -39,6 +39,8 @@
CZapitSetup::CZapitSetup()
{
zapit1 = NULL;
zapit2 = NULL;
width = w_max (40, 10); //%
}

View File

@@ -22,6 +22,11 @@ long CWebserverConnection::GConnectionNumber = 0;
// Constructor & Destructor & Initialization
//=============================================================================
CWebserverConnection::CWebserverConnection(CWebserver *pWebserver) {
sock = 0;
ConnectionNumber = 0;
enlapsed_request = 0;
enlapsed_response = 0;
Webserver = pWebserver;
Request.Webserver = pWebserver;
Request.Connection = this;
@@ -39,6 +44,12 @@ CWebserverConnection::CWebserverConnection(CWebserver *pWebserver) {
//-------------------------------------------------------------------------
CWebserverConnection::CWebserverConnection() {
// aprintf("test CWebserverConnection::CWebserverConnection()\n");
sock = 0;
RequestCanceled = 0;
keep_alive = 0;
HttpStatus = 0;
enlapsed_request = 0;
enlapsed_response = 0;
ConnectionNumber = ++GConnectionNumber;
}
//-------------------------------------------------------------------------

View File

@@ -141,7 +141,7 @@ public:
CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks
THttp_Method Method; // HTTP Method (requested)
// constructor & deconstructor
CyhookHandler(){};
CyhookHandler(){ContentLength = 0; keep_alive = 0; _outIndent = 0;};
virtual ~CyhookHandler(){};
// hook slot handler