mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user