mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 21:11:17 +00:00
Make some small often used strings static const.
This commit is contained in:
parent
d8775b5cc1
commit
ef9f8e3a31
@ -1767,9 +1767,9 @@ void display::refresh_report(reports::TYPE report_num, reports::report report,
|
||||
int green = (RGB & 0x0000FF00)>>8;
|
||||
int blue = (RGB & 0x000000FF);
|
||||
|
||||
std::string c_start="<";
|
||||
std::string c_sep=",";
|
||||
std::string c_end=">";
|
||||
static const std::string c_start="<";
|
||||
static const std::string c_sep=",";
|
||||
static const std::string c_end=">";
|
||||
std::stringstream color;
|
||||
color<< c_start << red << c_sep << green << c_sep << blue << c_end;
|
||||
std::string str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user