Now that fmt plays nice with gcc let's actually use it: replace std::to_string, boost lexical_cast and a couple miscellaneous llformats with fmt. (Alchemy sync-ish)
This commit is contained in:
@@ -2475,7 +2475,7 @@ BOOL LLLineEditor::evaluateFloat()
|
||||
else
|
||||
{
|
||||
// Replace the expression with the result
|
||||
std::string result_str = llformat("%f", result);
|
||||
std::string result_str = fmt::to_string(result);
|
||||
setText(result_str);
|
||||
selectAll();
|
||||
}
|
||||
|
||||
@@ -414,7 +414,7 @@ void LLResMgr::getIntegerString( std::string& output, S32 input ) const
|
||||
{
|
||||
if (fraction == remaining_count)
|
||||
{
|
||||
fraction_string = llformat("%d", fraction);
|
||||
fraction_string = fmt::to_string(fraction);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -3201,7 +3201,7 @@ LLScrollListItem* LLScrollListCtrl::addRow(LLScrollListItem *new_item, const LLS
|
||||
// empty columns strings index by ordinal
|
||||
if (column.empty())
|
||||
{
|
||||
column = llformat("%d", col_index);
|
||||
column = fmt::to_string(col_index);
|
||||
}
|
||||
|
||||
LLScrollListColumn* columnp = getColumn(column);
|
||||
|
||||
Reference in New Issue
Block a user