Remove CStr::FromInt64$
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled

For the usecase it's better to use `fmt::format`.
This commit is contained in:
phosit 2026-08-03 17:44:20 +02:00
parent ae936e8177
commit d6bdf51d83
No known key found for this signature in database
GPG key ID: C9430B600671C268
3 changed files with 1 additions and 9 deletions

View file

@ -202,13 +202,6 @@ CStr CStr::Repeat(const CStr& str, size_t reps)
// Construction from numbers:
CStr CStr::FromInt64(i64 n)
{
tstringstream<StrBase> ss;
ss << n;
return ss.str();
}
CStr CStr::FromDouble(double n)
{
tstringstream<StrBase> ss;

View file

@ -95,7 +95,6 @@ public:
// Conversions:
static CStr FromInt64(i64 n);
static CStr FromDouble(double n);
/**

View file

@ -386,7 +386,7 @@ private:
r += "user_id=";
AppendEscaped(r, m_UserID);
r += "&time=" + CStr::FromInt64(report.m_Time);
r = fmt::format("{}&time={}", std::move(r), report.m_Time);
r += "&type=";
AppendEscaped(r, report.m_Type);