*CTextBox: move framebuffer define only into initVar

framebuffer = NULL was called in all constructors,
so it should be enough to define this only at one point.
This commit is contained in:
2012-11-05 20:57:57 +01:00
parent 323393548d
commit 55896356f1

View File

@@ -75,7 +75,6 @@ CTextBox::CTextBox(const char * text, Font* font_text, const int pmode,
//TRACE("[CTextBox] new\r\n");
initVar();
frameBuffer = NULL;
max_width = 0;
if(text != NULL)
@@ -124,8 +123,6 @@ CTextBox::CTextBox(const char * text)
//TRACE("[CTextBox] new\r\n");
initVar();
frameBuffer = NULL;
if(text != NULL)
m_cText = *text;
@@ -156,6 +153,8 @@ CTextBox::~CTextBox()
void CTextBox::initVar(void)
{
//TRACE("[CTextBox]->InitVar\r\n");
frameBuffer = NULL;
m_showTextFrame = 0;
m_nNrOfNewLine = 0;
m_nMaxLineWidth = 0;