diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-07 02:32:40 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-07 02:32:40 -0700 |
| commit | 4f1c5e0b9ad516b1b506154fe4bf88d96e8664c8 (patch) | |
| tree | 34ee7a0f9f4cb0f2035e1fa996f5f170db497aa2 /toolsrc/src | |
| parent | 84a0eaa0f2ead797cc78d74e3f35239430447383 (diff) | |
| download | vcpkg-4f1c5e0b9ad516b1b506154fe4bf88d96e8664c8.tar.gz vcpkg-4f1c5e0b9ad516b1b506154fe4bf88d96e8664c8.zip | |
Use <ctime> instead of <time.h>. Default construct.
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/base/system.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg/base/system.cpp b/toolsrc/src/vcpkg/base/system.cpp index 171dd2bbf..ea74f872e 100644 --- a/toolsrc/src/vcpkg/base/system.cpp +++ b/toolsrc/src/vcpkg/base/system.cpp @@ -5,7 +5,7 @@ #include <vcpkg/globalstate.h> #include <vcpkg/metrics.h> -#include <time.h> +#include <ctime> #if defined(__APPLE__) #include <mach-o/dyld.h> @@ -23,7 +23,7 @@ namespace vcpkg::System { using std::chrono::system_clock; std::time_t now_time = system_clock::to_time_t(system_clock::now()); - tm parts; + tm parts{}; #if defined(_WIN32) localtime_s(&parts, &now_time); #else |
