diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-10-24 21:12:47 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2019-11-11 23:33:48 +0300 |
commit | 99131cd04bfc4a187e7a8d63803cb8911e64a08e (patch) | |
tree | c85b64c16b541561965f014d6e850279da04d3db /redfish-core | |
parent | a9cbc9cd3c957996831d731ad50c69f920ab065b (diff) | |
download | bmcweb-99131cd04bfc4a187e7a8d63803cb8911e64a08e.tar.xz |
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 <ed.tanous@intel.com>
Change-Id: I9526599b222693c9723a69934b599c7a5b5d1fbf
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/cpudimm.hpp | 4 | ||||
-rw-r--r-- | redfish-core/lib/log_services.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
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<AsyncResp> 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<time_t>(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); } |