mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
initialize not initialized var
Origin commit data
------------------
Commit: 926e0ce141
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-05 (Mon, 05 Nov 2012)
Origin message was:
------------------
initialize not initialized var
This commit is contained in:
@@ -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);};
|
||||
|
@@ -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 ;
|
||||
|
@@ -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 );
|
||||
|
@@ -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;};
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user