Update fmt to 6.2.0 (#4718)

* Update fmt to 6.2.0
This commit is contained in:
peterbell10
2020-05-05 22:52:14 +01:00
committed by GitHub
parent 8e2dfce84b
commit 57952505e5
25 changed files with 255 additions and 117 deletions
+4 -3
View File
@@ -692,10 +692,11 @@ AString cFile::GetExecutableExt(void)
int cFile::Printf(const char * a_Fmt, fmt::ArgList a_ArgList)
int cFile::vPrintf(const char * a_Fmt, fmt::printf_args a_ArgList)
{
AString buf = ::Printf(a_Fmt, a_ArgList);
return Write(buf.c_str(), buf.length());
fmt::memory_buffer Buffer;
fmt::printf(Buffer, fmt::to_string_view(a_Fmt), a_ArgList);
return Write(Buffer.data(), Buffer.size());
}