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

@@ -9,7 +9,7 @@ UIScene_HelpAndOptionsMenu::UIScene_HelpAndOptionsMenu(int iPad, void* initData,
// Setup all the Iggy references we need for this scene
initialiseMovie();
m_bNotInGame = (Minecraft::GetInstance()->level == NULL);
m_bNotInGame = (Minecraft::GetInstance()->level == nullptr);
m_buttons[BUTTON_HAO_CHANGESKIN].init(IDS_CHANGE_SKIN,
BUTTON_HAO_CHANGESKIN);
@@ -36,7 +36,7 @@ UIScene_HelpAndOptionsMenu::UIScene_HelpAndOptionsMenu(int iPad, void* initData,
// 4J-PB - do not need a storage device to see this menu - just need one
// when you choose to re-install them
bool bNotInGame = (Minecraft::GetInstance()->level == NULL);
bool bNotInGame = (Minecraft::GetInstance()->level == nullptr);
// any content to be re-installed?
if (m_iPad == ProfileManager.GetPrimaryPad() && bNotInGame) {
@@ -87,7 +87,7 @@ void UIScene_HelpAndOptionsMenu::updateTooltips() {
}
void UIScene_HelpAndOptionsMenu::updateComponents() {
bool bNotInGame = (Minecraft::GetInstance()->level == NULL);
bool bNotInGame = (Minecraft::GetInstance()->level == nullptr);
if (bNotInGame) {
m_parentLayer->showComponent(m_iPad, eUIComponent_Panorama, true);
m_parentLayer->showComponent(m_iPad, eUIComponent_Logo, true);
@@ -111,7 +111,7 @@ void UIScene_HelpAndOptionsMenu::handleReload() {
// 4J-PB - do not need a storage device to see this menu - just need one
// when you choose to re-install them
bool bNotInGame = (Minecraft::GetInstance()->level == NULL);
bool bNotInGame = (Minecraft::GetInstance()->level == nullptr);
// any content to be re-installed?
if (m_iPad == ProfileManager.GetPrimaryPad() && bNotInGame) {