mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:03:02 +08:00
Default construct std::array()
This commit is contained in:
parent
7a19c72ca9
commit
fcdf4637ed
@ -117,9 +117,7 @@ namespace vcpkg::Chrono
|
||||
|
||||
std::string CTime::to_string() const
|
||||
{
|
||||
std::array<char, 80> date;
|
||||
date.fill(0);
|
||||
|
||||
std::array<char, 80> date{};
|
||||
strftime(&date[0], date.size(), "%Y-%m-%dT%H:%M:%S.0Z", &m_tm);
|
||||
return &date[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user