Convert int to string with std::to_string, not std::ostringstream
This commit is contained in:
parent
47cfdf7b3c
commit
03beac263e
1 changed files with 1 additions and 3 deletions
|
@ -261,9 +261,7 @@ REPORT_GENERATOR(selected_unit_side, rc)
|
|||
static config unit_level(const unit* u)
|
||||
{
|
||||
if (!u) return config();
|
||||
std::ostringstream str, tooltip;
|
||||
str << u->level();
|
||||
return text_report(str.str(), unit_helper::unit_level_tooltip(*u));
|
||||
return text_report(std::to_string(u->level()), unit_helper::unit_level_tooltip(*u));
|
||||
}
|
||||
REPORT_GENERATOR(unit_level, rc)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue