mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Remove CStr::FromDouble
In most places `fmt::format` is used because it's locale indidendant. For the user reporter the locale dependant form of `fmt::format` is used because it's shown to the user.
This commit is contained in:
@@ -200,15 +200,6 @@ CStr CStr::Repeat(const CStr& str, size_t reps)
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Construction from numbers:
|
||||
|
||||
CStr CStr::FromDouble(double n)
|
||||
{
|
||||
tstringstream<StrBase> ss;
|
||||
ss << n;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
// Conversion to numbers:
|
||||
|
||||
int CStr::ToInt() const
|
||||
|
||||
Reference in New Issue
Block a user