mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CMenuOptionLanguageChooser:prevent alter of value conversion
compiler warning: wconversion
This commit is contained in:
@@ -1664,7 +1664,7 @@ int CMenuOptionLanguageChooser::paint( bool selected )
|
|||||||
//convert first letter to large
|
//convert first letter to large
|
||||||
std::string s_optionValue = optionValue;
|
std::string s_optionValue = optionValue;
|
||||||
if(!s_optionValue.empty())
|
if(!s_optionValue.empty())
|
||||||
s_optionValue[0] = toupper(s_optionValue[0]);
|
s_optionValue[0] = (char)toupper(s_optionValue[0]);
|
||||||
//paint text
|
//paint text
|
||||||
paintItemCaption(selected, height , s_optionValue.c_str());
|
paintItemCaption(selected, height , s_optionValue.c_str());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user