refactor: replace NULL with nullptr across C++ codebase

Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
MatthewBeshay
2026-03-30 16:25:52 +11:00
parent a330ecdcbb
commit dfb0e3b03e
752 changed files with 5396 additions and 5396 deletions

View File

@@ -113,26 +113,26 @@ UIString::~UIString() {
m_core = nullptr;
}
bool UIString::empty() { return m_core.get() == NULL; }
bool UIString::empty() { return m_core.get() == nullptr; }
bool UIString::compare(const UIString& uiString) {
return m_core.get() != uiString.m_core.get();
}
bool UIString::needsUpdating() {
if (m_core != NULL)
if (m_core != nullptr)
return m_core->needsUpdating();
else
return false;
}
void UIString::setUpdated() {
if (m_core != NULL) m_core->setUpdated();
if (m_core != nullptr) m_core->setUpdated();
}
std::wstring& UIString::getString() {
static std::wstring blank(L"");
if (m_core != NULL)
if (m_core != nullptr)
return m_core->getString();
else
return blank;