mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
clang-tidy: modernize-use-nullptr (NFC)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user