From 99131cd04bfc4a187e7a8d63803cb8911e64a08e Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 24 Oct 2019 11:12:47 -0700 Subject: Replace all uses of NULL with nullptr This was an automatic change made by clang-tidy. It moves all uses of NULL to nullptr, which are equivalent, but nullptr is prefered. Tested: Code compiles. Signed-off-by: Ed Tanous Change-Id: I9526599b222693c9723a69934b599c7a5b5d1fbf --- redfish-core/lib/cpudimm.hpp | 4 ++-- redfish-core/lib/log_services.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'redfish-core') diff --git a/redfish-core/lib/cpudimm.hpp b/redfish-core/lib/cpudimm.hpp index d8d419195a..ce36a0b9e5 100644 --- a/redfish-core/lib/cpudimm.hpp +++ b/redfish-core/lib/cpudimm.hpp @@ -71,8 +71,8 @@ void getCpuDataByInterface(std::shared_ptr aResp, { BMCWEB_LOG_DEBUG << "Get CPU resources by interface."; - const bool *present = NULL; - const bool *functional = NULL; + const bool *present = nullptr; + const bool *functional = nullptr; for (const auto &interface : cpuInterfacesProperties) { for (const auto &property : interface.second) diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index 643be9b90d..2eb00b6832 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -190,7 +190,7 @@ static bool getEntryTimestamp(sd_journal *journal, std::string &entryTimestamp) static_cast(timestamp / 1000 / 1000); // Convert from us to s struct tm *loctime = localtime(&t); char entryTime[64] = {}; - if (NULL != loctime) + if (nullptr != loctime) { strftime(entryTime, sizeof(entryTime), "%FT%T%z", loctime); } -- cgit v1.2.3