diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-07 02:07:40 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-07 02:07:40 -0700 |
| commit | fcdf4637ed9c645cc3719358a292c4571806e0bd (patch) | |
| tree | 861784c4af4828d225ca8c81383b2e73cac5e14b /toolsrc/src | |
| parent | 7a19c72ca9e9ae8215be63e957ba11cc156b87b9 (diff) | |
| download | vcpkg-fcdf4637ed9c645cc3719358a292c4571806e0bd.tar.gz vcpkg-fcdf4637ed9c645cc3719358a292c4571806e0bd.zip | |
Default construct std::array()
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/base/chrono.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg/base/chrono.cpp b/toolsrc/src/vcpkg/base/chrono.cpp index 00f8ba3f1..eff84ee4e 100644 --- a/toolsrc/src/vcpkg/base/chrono.cpp +++ b/toolsrc/src/vcpkg/base/chrono.cpp @@ -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]; } |
