From 2fe68db0a32137fe48014df2ce653f1e0a8ad93e Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 9 Feb 2015 23:47:51 +0200 Subject: [PATCH] pass nullptr to time() instead of 0 --- include/spdlog/details/os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 67e64ecd..1fdc27b1 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -73,7 +73,7 @@ inline std::tm localtime(const std::time_t &time_tt) inline std::tm localtime() { - std::time_t now_t = time(0); + std::time_t now_t = time(nullptr); return localtime(now_t); } @@ -93,7 +93,7 @@ inline std::tm gmtime(const std::time_t &time_tt) inline std::tm gmtime() { - std::time_t now_t = time(0); + std::time_t now_t = time(nullptr); return gmtime(now_t); } inline bool operator==(const std::tm& tm1, const std::tm& tm2)