clang-tidy: modernize-use-nullptr (NFC)

This commit is contained in:
Peter Johnson
2020-12-28 10:52:52 -08:00
parent aee4603269
commit 32fa97d68d
10 changed files with 23 additions and 23 deletions

View File

@@ -39,14 +39,14 @@ bool HALSimWS::Initialize() {
}
const char* host = std::getenv("HALSIMWS_HOST");
if (host != NULL) {
if (host != nullptr) {
m_host = host;
} else {
m_host = "localhost";
}
const char* port = std::getenv("HALSIMWS_PORT");
if (port != NULL) {
if (port != nullptr) {
try {
m_port = std::stoi(port);
} catch (const std::invalid_argument& err) {
@@ -58,7 +58,7 @@ bool HALSimWS::Initialize() {
}
const char* uri = std::getenv("HALSIMWS_URI");
if (uri != NULL) {
if (uri != nullptr) {
m_uri = uri;
} else {
m_uri = "/wpilibws";