mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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.
Origin commit data
------------------
Commit: 55896356f1
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-05 (Mon, 05 Nov 2012)
Origin message was:
------------------
*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:
@@ -74,8 +74,7 @@ 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;
|
||||
|
Reference in New Issue
Block a user