CComponentsText: Use 'std::string' instead of 'const char*' for ct_text

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3a19edda45
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-20 (Sat, 20 Apr 2013)

Origin message was:
------------------
* CComponentsText: Use 'std::string' instead of 'const char*' for ct_text

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2013-04-20 02:07:11 +02:00
parent 2d2c6397c2
commit 629f010372
3 changed files with 13 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ CComponentsInfoBox::CComponentsInfoBox()
}
CComponentsInfoBox::CComponentsInfoBox(const int x_pos, const int y_pos, const int w, const int h,
const char* info_text, const int mode, Font* font_text,
std::string info_text, const int mode, Font* font_text,
bool has_shadow,
fb_pixel_t color_text, fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)
{
@@ -128,7 +128,7 @@ void CComponentsInfoBox::paint(bool do_save_bg)
}
//set text and paint text lines
if (ct_text){
if (!ct_text.empty()){
if (cctext)
delete cctext;