Convert int to string with std::to_string, not std::ostringstream

This commit is contained in:
Ryan Frame 2019-12-30 11:12:26 -05:00
parent 47cfdf7b3c
commit 03beac263e

View file

@ -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)
{